Net::Amazon::S3::Response(3pm) | User Contributed Perl Documentation | Net::Amazon::S3::Response(3pm) |
Net::Amazon::S3::Response - Behaviour common to most S3 responses.
version 0.991
package Command::Response; extends 'Net::Amazon::S3::Response'; ... my $response = Command::Response->new ( http_response => $http_response, );
Response handler base class providing functionality common to most S3 responses.
Net::Amazon::S3::Response provides methods to cache response data.
Constructor accepts only one (required) parameter - "http_response". It should act like HTTP::Response.
Successful response may contain invalid XML.
Response is considered to be an error either when response code is an HTTP error (4xx or 5xx) or response content is an error XML document.
See also "S3 Error Response" <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html> for more details.
Apart error classifition Net::Amazon::S3::Response provides also common error data accessors.
Error data are available only in case of error response.
See "S3 Common Response Headers" <https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html> for more details.
Available only if response is XML response and contains valid XML document.
Available only if response is XML response and contains valid XML document
Further methods delegated to "http_response". Refer HTTP::Response for description.
Branislav Zahradník <barney@cpan.org>
This module is part of Net::Amazon::S3.
Branislav Zahradník <barney@cpan.org>
This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-07-18 | perl v5.34.0 |