1 package CatalystX::Debug::ResponseHeaders;
3 use namespace::autoclean;
5 our $VERSION = '0.001';
9 log_response_status_line
12 around log_response_status_line => sub {};
14 around log_response_headers => sub {
15 my ($orig, $c, $headers) = @_;
17 $c->log_headers('response', $headers);
24 CatalystX::Debug::ResponseHeaders - Log the full response headers sent by your Catalyst application in debug mode
29 +CatalystX::Debug::ResponseHeaders
34 Prints a L<Text::SimpleTable> style table containing all the headers sent from the
35 user's browser to the application for each request when the application is in debug mode.
39 =head2 log_response_status_line
41 Thie method is wrapped to stop the normal method being called. This suppresses the
42 normal single line response status output.
44 =head2 log_response_headers
46 This hook method in L<Catalyst> is wrapped to call the L<Catalyst/log_headers> method
47 for the request headers.
51 None known, but there probably are some.
53 Patches are welcome, as are bug reports in the L<rt.cpan.org> bug tracker.
57 Tomas Doran (t0m) C<< <bobtfish@bobtfish.net> >>.
59 =head1 COPYRIGHT & LICENSE
61 Copyright 2010 the above author(s).
63 This sofware is free software, and is licensed under the same terms as perl itself.