File Coverage

blib/lib/Net/Amazon/S3/Request/Role/HTTP/Header/Content_length.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Content-Lenghth header role
2             $Net::Amazon::S3::Request::Role::HTTP::Header::Content_length::VERSION = '0.991';
3             use Moose::Role;
4 99     99   50719 use Digest::MD5 qw[];
  99         282  
  99         641  
5 99     99   412984 use MIME::Base64 qw[];
  99         266  
  99         1953  
6 99     99   547  
  99         217  
  99         8697  
7             around _request_headers => sub {
8             my ($inner, $self) = @_;
9             my $content = $self->_http_request_content;
10              
11             return ($self->$inner, ('Content-Length' => length $content));
12             };
13              
14             1;
15              
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             Net::Amazon::S3::Request::Role::HTTP::Header::Content_length - Content-Lenghth header role
24              
25             =head1 VERSION
26              
27             version 0.991
28              
29             =head1 AUTHOR
30              
31             Branislav Zahradník <barney@cpan.org>
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
36              
37             This is free software; you can redistribute it and/or modify it under
38             the same terms as the Perl 5 programming language system itself.
39              
40             =cut