| Moxy documentation | Contained in the Moxy distribution. |
Moxy::Plugin::ShowHTTPHeaders - show http headers in control panel.
- module: ShowHTTPHeaders
show http headers on control panel, for debugging.
Tokuhiro Matsuno
| Moxy documentation | Contained in the Moxy distribution. |
package Moxy::Plugin::ShowHTTPHeaders; use strict; use warnings; use base qw/Moxy::Plugin/; sub control_panel :Hook { my ($self, $context, $args) = @_; $context->log(debug => 'dump http headers'); return $self->render_template( $context, 'panel.tt' => { request => $args->{response}->request->headers_as_string(), response => $args->{response}->headers_as_string(), } ); } 1; __END__