public int $contentLength
public int $bytesRemaining
private bool $headersParsed
public __construct({Array})
Parameter | Type | Description |
---|
$status | int | |
$headers | array | |
$version | string | |
Magic method to allow access to headers as properties.
Parameter | Type | Description |
---|
$key | string | The header key to get |
public setStatus({Array})
Parameter | Type | Description |
---|
$status | int | |
Parameter | Type | Description |
---|
$string | string | |
Parameter | Type | Description |
---|
$buffer | string | |
public hasHeader({Array})
Parameter | Type | Description |
---|
$key | string | |
Get a header from the response.
public getHeader({Array})
Parameter | Type | Description |
---|
$header | string | The header key to get |
public setHeader({Array})
Parameter | Type | Description |
---|
$header | string | |
$content | string | |
public getStatusMessage({Array})
Parameter | Type | Description |
---|
$code | int | |
Get the content type of the response.
public getContentType({Array})
This method will return the content type of the response and optionally return any arguments that were
Parameter | Type | Description |
---|
$args | array | The arguments of the content type header will be returned in this array |
Parameter | Type | Description |
---|
$raw | bool | |
Parameter | Type | Description |
---|
$key | string | |
$cipher | string | |
Generated by Hazaar API Doc Generator