Property | Type | Description | |
---|---|---|---|
$body | |||
$charset | |||
$code | |||
$content_type | |||
$headers | |||
$is_mime_personal | |||
$is_mime_vendor_specific | |||
$meta_data | |||
$parent_type | |||
$raw_body | |||
$raw_headers | |||
$request |
Method | Description | |
---|---|---|
__construct ( string $body, string $headers, httpful\Request $request, array $meta_data = [] ) | ||
__toString ( ) : string | ||
_interpretHeaders ( ) | After we've parse the headers, let's clean things up a bit and treat some headers specially | |
_parse ( $body ) : array | string | object | Parse the response into a clean data structure (most often an associative array) based on the expected Mime type. | |
_parseCode ( $headers ) | ||
_parseHeaders ( string $headers ) : array | Parse text headers from response into array of key value pairs | |
hasBody ( ) : boolean | ||
hasErrors ( ) : boolean | Status Code Definitions |
public _interpretHeaders ( ) |
public _parseHeaders ( string $headers ) : array | ||
$headers | string | raw headers |
return | array | parse headers |