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 |