File Coverage

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


line stmt bran cond sub pod time code
1             package Net::Amazon::S3::Request::Role::HTTP::Header::Content_type;
2             # ABSTRACT: Content-Type header role
3             $Net::Amazon::S3::Request::Role::HTTP::Header::Content_type::VERSION = '0.98';
4 96     96   68879 use MooseX::Role::Parameterized;
  96         308  
  96         1185  
5              
6             parameter content_type => (
7             is => 'ro',
8             isa => 'Str',
9             required => 1,
10             );
11              
12             role {
13             my ($params) = @_;
14             my $content_type = $params->content_type;
15              
16             around _request_headers => sub {
17             my ($inner, $self) = @_;
18              
19             return ($self->$inner, ('Content-Type' => $content_type));
20             };
21             };
22              
23             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.98
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) 2021 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