HttpResponse
in package
Immutable HTTP response returned by transport implementations.
Table of Contents
Properties
- $body : string
- $headers : array<string, string>
- $statusCode : int
Methods
- __construct() : mixed
Properties
$body
public
string
$body
$headers
public
array<string, string>
$headers
$statusCode
public
int
$statusCode
Methods
__construct()
public
__construct(int $statusCode, string $body[, array<string, string> $headers = array() ]) : mixed
Parameters
- $statusCode : int
-
HTTP response status code.
- $body : string
-
Raw response body.
- $headers : array<string, string> = array()
-
HTTP response headers.