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