final class RawResponse implements RawResponseInterface

Methods

__construct(int $statusCode, array $headers, string $body, string $version)

Create a new raw response instance.

int
getStatusCode()

Get the HTTP status code.

array
getHeaders()

Get the response headers.

string
getBody()

Get the response body.

string
getVersion()

Get the HTTP protocol version.

Details

at line 16
__construct(int $statusCode, array $headers, string $body, string $version)

Create a new raw response instance.

Parameters

int $statusCode
array $headers
string $body
string $version

at line 27
int getStatusCode()

Get the HTTP status code.

Return Value

int

at line 35
array getHeaders()

Get the response headers.

Return Value

array

at line 43
string getBody()

Get the response body.

Return Value

string

at line 51
string getVersion()

Get the HTTP protocol version.

Return Value

string