class Response (View source)

HTTP response.

Properties

int $status HTTP response status.
array $headers HTTP response headers.
array $body Decoded JSON response body.

Methods

void
__construct($status, array $headers, string $body, bool $raw = false)

Construct response.

Details

void __construct($status, array $headers, string $body, bool $raw = false)

Construct response.

Parameters

$status
array $headers
string $body
bool $raw

Return Value

void