\ManaPHP\Http\ClientResponse

Summary

Methods
Properties
Constants
__construct()
getHeaders()
getJsonBody()
getUtf8Body()
jsonSerialize()
$url
$process_time
$remote_ip
$http_code
$headers
$content_type
$body
No constants found
_getLastHeaders()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$url

$url : string

Type

string

$process_time

$process_time : float

Type

float

$remote_ip

$remote_ip : string

Type

string

$http_code

$http_code : integer

Type

integer

$headers

$headers : array

Type

array

$content_type

$content_type : string

Type

string

$body

$body : string|array

Type

string|array

Methods

__construct()

__construct(\ManaPHP\Http\Client\Request  $request, array  $headers, string  $body) 

Parameters

\ManaPHP\Http\Client\Request $request
array $headers
string $body

getHeaders()

getHeaders() : array

Returns

array

getJsonBody()

getJsonBody() : array

Throws

\ManaPHP\Exception\InvalidJsonException

Returns

array

getUtf8Body()

getUtf8Body() : string

Returns

string

jsonSerialize()

jsonSerialize() 

_getLastHeaders()

_getLastHeaders(array  $headers) : array

Parameters

array $headers

Returns

array