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