class Response (View source)

Methods

__construct(array $request, $code, array $headers, $body)

No description

getStatusCode()

No description

string|null
getStatusMessage()

No description

getHeaders()

No description

getHeader($name)

No description

getBody()

No description

decodeJson()

No description

collect()

No description

static string|null
findHeaderValue(array $headers, string $name)

No description

Details

__construct(array $request, $code, array $headers, $body)

Parameters

array $request
$code
array $headers
$body

getStatusCode()

string|null getStatusMessage()

Return Value

string|null

getHeaders()

getHeader($name)

Parameters

$name

getBody()

decodeJson()

collect()

static string|null findHeaderValue(array $headers, string $name)

Parameters

array $headers array of returned headers like from getLastHeaders()
string $name header name (case insensitive)

Return Value

string|null