ResponseConfig
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- bodySizeLimit() : int
- excludeStatusCodes() : array<string|int, int>
- includeBody() : bool
- includeHeaders() : array<string|int, string>
- includeReasonPhrase() : bool
- includeStatus() : bool
Methods
__construct()
public
__construct([bool $withReasonPhrase = true ][, bool $withStatus = true ][, bool $withBody = false ][, int $bodySizeLimit = 1024 * 1024 * 32 ][, array<string|int, mixed> $withoutStatusCodes = [] ][, array<string|int, mixed> $headers = ['cache-control', 'location', 'set-cookie', 'server', 'expires', 'content-type', 'content-length', 'last-modified', 'kee-alive', 'referrer-policy', 'etag'] ]) : mixed
Parameters
- $withReasonPhrase : bool = true
- $withStatus : bool = true
- $withBody : bool = false
- $bodySizeLimit : int = 1024 * 1024 * 32
- $withoutStatusCodes : array<string|int, mixed> = []
-
- $headers : array<string|int, mixed> = ['cache-control', 'location', 'set-cookie', 'server', 'expires', 'content-type', 'content-length', 'last-modified', 'kee-alive', 'referrer-policy', 'etag']
-
bodySizeLimit()
public
bodySizeLimit() : int
Return values
intexcludeStatusCodes()
public
excludeStatusCodes() : array<string|int, int>
Return values
array<string|int, int>includeBody()
public
includeBody() : bool
Return values
boolincludeHeaders()
public
includeHeaders() : array<string|int, string>
Return values
array<string|int, string>includeReasonPhrase()
public
includeReasonPhrase() : bool
Return values
boolincludeStatus()
public
includeStatus() : bool