yxorP Documentation

response
in package

Table of Contents

$file  : mixed
$_body  : string|null
$_header  : array<string|int, mixed>|null
$_mimeTypeMap  : mixed
$_phrases  : array<string|int, mixed>
$_reason  : mixed
$_status  : string|array<string|int, mixed>|object|null
$_version  : string
__construct()  : mixed
__toString()  : mixed
cookie()  : static
getHeader()  : mixed
getHeaders()  : array<string|int, mixed>|null
getReasonPhrase()  : mixed
getStatusCode()  : mixed
header()  : static
init()  : mixed
initMimeTypeMap()  : mixed
rawBody()  : string|null
withBody()  : static
withFile()  : response|static
withHeader()  : static
withHeaders()  : static
withoutHeader()  : static
withProtocolVersion()  : static
withStatus()  : static
createHeadForFile()  : string

Properties

$_body

private string|null $_body = null

$_header

private array<string|int, mixed>|null $_header = null

$_mimeTypeMap

private static mixed $_mimeTypeMap = null

$_phrases

private static array<string|int, mixed> $_phrases = [100 => 'Continue', 101 => 'Switching protocols', 102 => 'Processing', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch 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', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 511 => 'Network Authentication Required']

$_status

private string|array<string|int, mixed>|object|null $_status = null

$_version

private string $_version = '1.1'

Methods

__construct()

public __construct([mixed $status = 200 ][, mixed $headers = [] ][, mixed $body = '' ]) : mixed
Parameters
$status : mixed = 200
$headers : mixed = []
$body : mixed = ''
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed
public cookie(mixed $name[, mixed $value = '' ][, mixed $max_age = null ][, mixed $path = '' ][, mixed $domain = '' ][, mixed $secure = false ][, mixed $http_only = false ][, mixed $same_site = false ]) : static
Parameters
$name : mixed
$value : mixed = ''
$max_age : mixed = null
$path : mixed = ''
$domain : mixed = ''
$secure : mixed = false
$http_only : mixed = false
$same_site : mixed = false
Return values
static

getHeader()

public getHeader(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

getHeaders()

public getHeaders() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getReasonPhrase()

public getReasonPhrase() : mixed
Return values
mixed

getStatusCode()

public getStatusCode() : mixed
Return values
mixed

header()

public header(mixed $name, mixed $value) : static
Parameters
$name : mixed
$value : mixed
Return values
static

init()

public static init() : mixed
Return values
mixed

initMimeTypeMap()

public static initMimeTypeMap() : mixed
Return values
mixed

rawBody()

public rawBody() : string|null
Return values
string|null

withBody()

public withBody(mixed $body) : static
Parameters
$body : mixed
Return values
static

withFile()

public withFile(mixed $file, mixed $offset, mixed $length) : response|static
Parameters
$file : mixed
$offset : mixed
$length : mixed
Return values
response|static

withHeader()

public withHeader(mixed $name, mixed $value) : static
Parameters
$name : mixed
$value : mixed
Return values
static

withHeaders()

public withHeaders(mixed $headers) : static
Parameters
$headers : mixed
Return values
static

withoutHeader()

public withoutHeader(mixed $name) : static
Parameters
$name : mixed
Return values
static

withProtocolVersion()

public withProtocolVersion(mixed $version) : static
Parameters
$version : mixed
Return values
static

withStatus()

public withStatus(mixed $code[, mixed $reason_phrase = null ]) : static
Parameters
$code : mixed
$reason_phrase : mixed = null
Return values
static

createHeadForFile()

protected createHeadForFile(mixed $file_info) : string
Parameters
$file_info : mixed
Return values
string

Search results