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

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector

Http\Response::setCookies

public setCookies (Phalcon\Http\Response\CookiesInterface $cookies) Sets a cookies bag for the response externally

Http\Response::setEtag

public setEtag (mixed $etag) Set a custom ETag $response->setEtag(md5(time()));

Http\Response::setContent

public setContent (mixed $content) Sets HTTP response body response->setContent("<h1>Hello!</h1>");

Http\Response::setContentType

public setContentType (mixed $contentType, [mixed $charset]) Sets the response content-type mime, optionally the charset $response->setContentType('application/pdf'); $response->setContentType('text/plain', 'UTF-8');

Http\Response::setContentLength

public setContentLength (mixed $contentLength) Sets the response content-length $response->setContentLength(2048);

Http\Response::resetHeaders

public resetHeaders () Resets all the stablished headers

Http\Response::sendHeaders

public sendHeaders () Sends headers to the client

Http\Response::redirect

public redirect ([mixed $location], [mixed $externalRedirect], [mixed $statusCode]) Redirect by HTTP to another action or URL //Using a string redirect (internal/external) $response->redirect("posts/index"); $response->redirect("http://en.wikipedia.org", true); $response->redirect("http://www.example.com/new-location", true, 301); //Making a redirection based on a named route $response->redirect(array( "for" => "index-lang", "lang" => "jp", "controller" => "ind