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