Plack::Middleware::Debug::Base3pm
Base class for debug panels
Usage
package Plack::Middleware::Debug::YourPanel;use parent qw(Plack::Middleware::Debug::Base);sub run {my($self, $env, $panel) = @_;# Do something before the application runsreturn sub {my $res = shift;# Do something after the application returns};}
Overview
This is the base class for panels.
Methods
- "run"
-
This method is called when a request has arrived, before the main application runs. The parameters are
$env, the PSGI environment hash reference and$panel, a Plack::Middleware::Debug::Panel object.If your panel needs to do some response munging, you should return a callback that takes
$resthe response object. Because you can return a closure, the response filter can also use$envand$paneleasily.
Bugs and limitations
No bugs have been reported.
Please report any bugs or feature requests through the web interface at <http://rt.cpan.org>.
Installation
See perlmodinstall for information and options on installing Perl modules.
Copyright and license
Copyright 2009 by Marcel Gruenauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.