1 package CatalystX::Debug::RequestHeaders;
3 use namespace::autoclean;
5 our $VERSION = '0.002';
7 requires 'log_request_headers';
9 around log_request_headers => sub {
12 my $headers = shift; # an HTTP::Headers instance
14 return unless $c->debug;
16 $c->log_headers('request', $headers);
23 CatalystX::Debug::RequestHeaders - Log the full request headers sent to a Catalyst application in debug mode
28 +CatalystX::Debug::RequestHeaders
33 Prints a L<Text::SimpleTable> style table containing all the headers sent from the
34 user's browser to the application for each request when the application is in debug mode.
38 =head2 log_request_headers
40 This hook method in L<Catalyst> is wrapped to call the L<Catalyst/log_headers> method
41 for the request headers.
45 None known, but there probably are some.
47 Patches are welcome, as are bug reports in the L<rt.cpan.org> bug tracker.
51 Tomas Doran (t0m) C<< <bobtfish@bobtfish.net> >>.
53 =head1 COPYRIGHT & LICENSE
55 Copyright 2010 the above author(s).
57 This sofware is free software, and is licensed under the same terms as perl itself.