| Net-Amazon-S3 documentation | Contained in the Net-Amazon-S3 distribution. |
Net::Amazon::S3::Request::GetObject - An internal class to get an object
my $http_request = Net::Amazon::S3::Request::GetObject->new(
s3 => $s3,
bucket => $bucket,
key => $key,
method => 'GET',
)->http_request;
This module gets an object.
This method returns a HTTP::Request object.
This method returns query string authentication URI.
| Net-Amazon-S3 documentation | Contained in the Net-Amazon-S3 distribution. |
package Net::Amazon::S3::Request::GetObject; use Moose; use MooseX::StrictConstructor; extends 'Net::Amazon::S3::Request'; has 'bucket' => ( is => 'ro', isa => 'BucketName', required => 1 ); has 'key' => ( is => 'ro', isa => 'Str', required => 1 ); has 'method' => ( is => 'ro', isa => 'HTTPMethod', required => 1 ); __PACKAGE__->meta->make_immutable; sub http_request { my $self = shift; return Net::Amazon::S3::HTTPRequest->new( s3 => $self->s3, method => $self->method, path => $self->_uri( $self->key ), )->http_request; } sub query_string_authentication_uri { my ( $self, $expires ) = @_; return Net::Amazon::S3::HTTPRequest->new( s3 => $self->s3, method => $self->method, path => $self->_uri( $self->key ), )->query_string_authentication_uri($expires); } 1; __END__