Http\Response::setRawHeader

public setRawHeader (mixed $header) Send a raw header to the response $response->setRawHeader("HTTP/1.1 404 Not Found");

Http\Response::setStatusCode

public setStatusCode (mixed $code, [mixed $message]) Sets the HTTP response code $response->setStatusCode(404, "Not Found");

Http\ResponseInterface::getHeaders

abstract public getHeaders () ...

Http\ResponseInterface::appendContent

abstract public appendContent (mixed $content) ...

Http\Response::setNotModified

public setNotModified () Sends a Not-Modified response

Http\Response::setJsonContent

public setJsonContent (mixed $content, [mixed $jsonOptions], [mixed $depth]) Sets HTTP response body. The parameter is automatically converted to JSON and also sets default header: Content-Type: “application/json; charset=UTF-8” $response->setJsonContent(array("status" => "OK"));

Http\Response::setExpires

public setExpires (DateTime $datetime) Sets an Expires header in the response that allows to use the HTTP cache $this->response->setExpires(new DateTime());

Http\Response::setFileToSend

public setFileToSend (mixed $filePath, [mixed $attachmentName], [mixed $attachment]) Sets an attached file to be sent at the end of the request

Http\Response::setLastModified

public setLastModified (DateTime $datetime) Sets Last-Modified header $this->response->setLastModified(new DateTime());

Http\Response::setHeaders

public setHeaders (Phalcon\Http\Response\HeadersInterface $headers) Sets a headers bag for the response externally