$header
$header
Stores the HTTP header information.
Container for all response-related methods.
__construct(array $header, string $body, int $status = null) : object
Constructs a new instance of this class.
array | $header | (Required) Associative array of HTTP headers (typically returned by RequestCore::get_response_header()). |
string | $body | (Required) XML-formatted response from AWS. |
int | $status | (Optional) HTTP response status code from the request. |
Contains an php:array header
property (HTTP headers as an associative array), a php:SimpleXMLElement or php:string body
property, and an php:integer status
code.
isOK(int|array $codes = array(200, 201, 204, 206)) : bool
Did we receive the status code we expected?
int|array | $codes | (Optional) The status code(s) to expect. Pass an php:integer for a single acceptable value, or an php:array of integers for multiple acceptable values. |
Whether we received the expected status code or not.
Loading…