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