« 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.992'; | |
| 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 | 99 | ▶ | role { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 13 | 99 | my ($params) = @_; | |
| 14 | 99 | my $content_type = $params->content_type; | |
| 15 | |||
| 16 | 118 | ▶ | around _request_headers => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | 118 | my ($inner, $self) = @_; | |
| 18 | |||
| 19 | 118 | return ($self->$inner, ('Content-Type' => $content_type)); | |
| 20 | 99 | }; | |
| 21 | 99 | }; | |
| 22 | |||
| 23 | 99 | 1; | |
| 24 | |||
| 25 | __END__ | ||