Table of Contents
-
$body
: mixed
-
$etag
: bool
-
$gzip
: bool
-
$headers
: array<string|int, mixed>
-
$mime
: string
-
$mimeTypes
: array<string|int, mixed>
-
$nocache
: bool
-
$status
: int
-
$statusCodes
: array<string|int, mixed>
-
flush()
: void
$body
public
mixed
$body
= ''
$etag
public
bool
$etag
= false
$gzip
public
bool
$gzip
= false
public
array<string|int, mixed>
$headers
= []
$mime
public
string
$mime
= 'html'
$mimeTypes
public
static array<string|int, mixed>
$mimeTypes
= ['asc' => 'text/plain', 'au' => 'audio/basic', 'avi' => 'video/x-msvideo', 'bin' => 'application/octet-stream', 'class' => 'application/octet-stream', 'css' => 'text/css', 'csv' => 'application/vnd.ms-excel', 'doc' => 'application/msword', 'dll' => 'application/octet-stream', 'dvi' => 'application/x-dvi', 'exe' => 'application/octet-stream', 'htm' => 'text/html', 'html' => 'text/html', 'json' => 'application/json', 'js' => 'application/x-javascript', 'txt' => 'text/plain', 'rtf' => 'text/rtf', 'wml' => 'text/vnd.wap.wml', 'wmls' => 'text/vnd.wap.wmlscript', 'xsl' => 'text/xml', 'xml' => 'text/xml', 'bmp' => 'image/bmp', 'rss' => 'application/rss+xml', 'atom' => 'application/atom+xml', 'gif' => 'image/gif', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'png' => 'image/png', 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'ico' => 'image/vnd.microsoft.icon', 'svg' => 'image/svg+xml', 'webp' => 'image/webp', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'webm' => 'video/webm', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'wmv' => 'video/x-ms-wmv', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'snd' => 'audio/basic', 'midi' => 'audio/midi', 'mid' => 'audio/midi', 'm3u' => 'audio/x-mpegurl', 'rm' => 'audio/x-pn-realaudio', 'ram' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'wav' => 'audio/x-wav', 'weba' => 'audio/webm', 'zip' => 'application/zip', 'epub' => 'application/epub+zip', 'pdf' => 'application/pdf', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', 'wbxml' => 'application/vnd.wap.wbxml', 'wmlc' => 'application/vnd.wap.wmlc', 'wmlsc' => 'application/vnd.wap.wmlscriptc', 'spl' => 'application/x-futuresplash', 'gtar' => 'application/x-gtar', 'gzip' => 'application/x-gzip', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'text' => 'text/plain', 'yaml' => 'application/x-yaml']
$nocache
public
bool
$nocache
= false
$status
public
int
$status
= 200
$statusCodes
public
static array<string|int, mixed>
$statusCodes
= [
// Informational 1xx
100 => 'Continue',
101 => 'Switching Protocols',
// Successful 2xx
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
// Redirection 3xx
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
307 => 'Temporary Redirect',
// Client Error 4xx
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Long',
415 => 'Unsupported Media Type',
416 => 'Request Range Not Satisfiable',
417 => 'Expectation Failed',
// Server Error 5xx
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
]
flush()
public
flush() : void
Return values
void
—