Response
class Response (View source)
Methods
Define registered headers to response
Get registered headers
Get or set status code and return last status code
Register a header and return your index, if Response::dispatch
was previously executed the header will be set directly and will not be
registered
Remove registered (or setted) header
Set header to cache page (or no-cache)
Force download current page
Set content-type
Set charset in content-type
Details
at line 27
static void
dispatch()
Define registered headers to response
at line 51
static array
getHeaders()
Get registered headers
at line 63
static int|bool
status(int $code = null, bool $trigger = true)
Get or set status code and return last status code
at line 97
static void
putHeader(string $name, string $value, bool $replace = true)
Register a header and return your index, if Response::dispatch
was previously executed the header will be set directly and will not be
registered
at line 112
static void
removeHeader(string $name)
Remove registered (or setted) header
at line 130
static void
cache(int $seconds, int $modified = 0)
Set header to cache page (or no-cache)
at line 153
static void
download(string $name = null, int $contentLength = 0)
Force download current page
at line 175
static void
type($type)
Set content-type
at line 186
static void
charset($charset)
Set charset in content-type