Method | Description | |
---|---|---|
__construct ( $body = 'php://memory', integer $status = 200, array $headers = [] ) | ||
getReasonPhrase ( ) | ||
getStatusCode ( ) | ||
withStatus ( $code, $reasonPhrase = '' ) |
Method | Description | |
---|---|---|
assertHeaders ( array $headers ) | Ensure header names and values are valid. | |
validateStatus ( integer | string $code ) | Validate a status code. |
public __construct ( $body = 'php://memory', integer $status = 200, array $headers = [] ) | ||
$status | integer | Status code for the response, if any. |
$headers | array | Headers for the response, if any. |