Response
class Response (View source)
Methods
static int|bool
status(int $code)
Get or set status code and return last status code. Note: if set status work, Event::on('changestatus') is trigged
static void
header($header, $value, bool $replace = true)
Short
static bool
content($type, string|null $charset = null)
Get or set status code and return last status code
static bool
cache(int $expires, int $modified = 0)
Set header to cache page Response::cache($seconds, $modified = 0);
static bool
download(string $name, int $length = 0)
Force download current page
Details
static int|bool
status(int $code)
Get or set status code and return last status code. Note: if set status work, Event::on('changestatus') is trigged
static void
header($header, $value, bool $replace = true)
Short
static bool
content($type, string|null $charset = null)
Get or set status code and return last status code
static bool
cache(int $expires, int $modified = 0)
Set header to cache page Response::cache($seconds, $modified = 0);
static bool
download(string $name, int $length = 0)
Force download current page