* $response->setJsonContent(array("status" => "OK")); * * * @param string $content * @return \Phalcon\Http\ResponseInterface */ public function setJsonContent($content); /** * Appends a string to the HTTP response body * * @param string $content * @return \Phalcon\Http\ResponseInterface */ public function appendContent($content); /** * Gets the HTTP response body * * @return string */ public function getContent(); /** * Sends headers to the client * * @return \Phalcon\Http\ResponseInterface */ public function sendHeaders(); /** * Sends cookies to the client * * @return \Phalcon\Http\ResponseInterface */ public function sendCookies(); /** * Prints out HTTP response to the client * * @return \Phalcon\Http\ResponseInterface */ public function send(); /** * Sets an attached file to be sent at the end of the request * * @param string $filePath * @param string $attachmentName */ public function setFileToSend($filePath, $attachmentName=null); } }