Converts the HTTP responses into organized data chunks.
2008.11.27
2006-2009 LifeNexus Digital, Inc., and contributors.
| Simplified BSD License | http://opensource.org/licenses/bsd-license.php |
| Tarzan | http://tarzan-aws.com |
public function __construct( $header, $body, $status = null )
The constructor
public
| header | array (Required) Associative array of HTTP headers (typically returned by TarzanHTTPRequest::getResponseHeader()). |
| body | string (Required) XML-formatted response from AWS. |
| status | integer (Optional) HTTP response status code from the request. |
object Contains an array ‘header’ property (HTTP headers as an associative array), a SimpleXMLElement ‘body’ property, and an integer ‘status’ code.
| Example Usage | http://tarzan-aws.com |
public function isOK( $codes = array(200, 201, 204) )
Did we receive the status code we expected?
public
| codes | integer|array (Optional) The status code(s) to expect. Pass an integer for a single acceptable value, or an array of integers for multiple acceptable values. Defaults to array 200|204. |
boolean Whether we received the expected status code or not.
| Example Usage | http://tarzan-aws.com |