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