Http\ResponseInterface::appendContent

abstract public appendContent (mixed $content) ...

Http\ResponseInterface

Source on GitHub Methods abstract public setStatusCode (mixed $code, [mixed $message]) ... abstract public getHeaders () ... abstract public setHeader (mixed $name, mixed $value) ... abstract public setRawHeader (mixed $header) ... abstract public resetHeaders () ... abstract public setExpires (DateTime $datetime) ... abstract public setNotModified () ... abstract public setContentType (mixed $contentType, [mixed $charset]) ... abstract public setContentLength (mixed $contentLength) ... abstrac

Http\Response::setStatusCode

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

Http\Response::setRawHeader

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

Http\Response::setNotModified

public setNotModified () Sends a Not-Modified response

Http\Response::setLastModified

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

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::setHeaders

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

Http\Response::setHeader

public setHeader (mixed $name, mixed $value) Overwrites a header in the response $response->setHeader("Content-Type", "text/plain");

Http\Response::setFileToSend

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