yxorP Documentation

response
in package

Table of Contents

$headers  : ParamStore
$status  : mixed
$content  : string
$statusCodes  : array<string|int, mixed>
__construct()  : mixed
getContent()  : string
getStatusCode()  : mixed
getStatusText()  : string
printContent()  : void
sendHeaders()  : void
setContent()  : void
setStatusCode()  : void

Properties

$statusCodes

private array<string|int, mixed> $statusCodes = array(100 => 'Continue', 101 => 'Switching protocols', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', 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 Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'request Entity Too Large', 414 => 'request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 429 => 'Too Many Requests', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'Unsupported Version')

Methods

__construct()

public __construct([mixed $content = CHAR_EMPTY_STRING ][, mixed $status = 200 ][, mixed $headers = array() ]) : mixed
Parameters
$content : mixed = CHAR_EMPTY_STRING
$status : mixed = 200
$headers : mixed = array()
Return values
mixed

getContent()

public getContent() : string
Return values
string

getStatusCode()

public getStatusCode() : mixed
Return values
mixed

getStatusText()

public getStatusText() : string
Return values
string

printContent()

public printContent() : void
Return values
void

sendHeaders()

public sendHeaders() : void
Return values
void

setContent()

public setContent(mixed $content) : void
Parameters
$content : mixed
Return values
void

setStatusCode()

public setStatusCode(mixed $code) : void
Parameters
$code : mixed
Return values
void

Search results