Net/Amazon/S3/Operation/Object/Upload/Create/Request.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Net/Amazon/S3/Operation/Object/Upload/Create.pm ↑ Summary Net/Amazon/S3/Operation/Object/Upload/Part.pm »
1 package Net::Amazon::S3::Operation::Object::Upload::Create::Request;
2 #ABSTRACT: An internal class to begin a multipart upload
3 99 $Net::Amazon::S3::Operation::Object::Upload::Create::Request::VERSION = '0.991';
4 99 ▶use Moose 0.85;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 99 ▶use MooseX::StrictConstructor 0.16;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 99 extends 'Net::Amazon::S3::Request::Object';
7  
8 has 'headers' =>
9 6 ▶ ( is => 'ro', isa => 'HashRef', required => 0, default => sub { {} } );
Subroutine __ANON__: called CC=1 SCAR=0.0
10  
11 99 with 'Net::Amazon::S3::Request::Role::Query::Action::Uploads';
12 99 with 'Net::Amazon::S3::Request::Role::HTTP::Header::ACL';
13 99 with 'Net::Amazon::S3::Request::Role::HTTP::Header::Encryption';
14 99 with 'Net::Amazon::S3::Request::Role::HTTP::Method::POST';
15  
16 99 __PACKAGE__->meta->make_immutable;
17  
18 sub _request_headers {
19 27 ▶ my ($self) = @_;
Subroutine _request_headers: called CC=1 SCAR=0.0
20  
21 27 return %{ $self->headers };
22 }
23  
24 99 1;
25  
26 __END__
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 Net::Amazon::S3::Operation::Object::Upload::Create::Request - An internal class to begin a multipart upload
35  
36 =head1 VERSION
37  
38 version 0.991
39  
40 =head1 SYNOPSIS
41  
42 my $request = Net::Amazon::S3::Operation::Object::Upload::Create::Request->new (
43 s3 => $s3,
44 bucket => $bucket,
45 keys => $key,
46 );
47  
48 =head1 DESCRIPTION
49  
50 Implement operation L<< CreateMultipartUpload|https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html >>.
51  
52 This module begins a multipart upload
53  
54 =for test_synopsis no strict 'vars'
55  
56 =head1 METHODS
57  
58 =head2 http_request
59  
60 This method returns a HTTP::Request object.
61  
62 =head1 AUTHOR
63  
64 Branislav Zahradník <barney@cpan.org>
65  
66 =head1 COPYRIGHT AND LICENSE
67  
68 This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
69  
70 This is free software; you can redistribute it and/or modify it under
71 the same terms as the Perl 5 programming language system itself.
72  
73 =cut
« Net/Amazon/S3/Operation/Object/Upload/Create.pm ↑ Summary Net/Amazon/S3/Operation/Object/Upload/Part.pm »