| HTTP-Engine-Middleware documentation | view source | Contained in the HTTP-Engine-Middleware distribution. |
HTTP::Engine::Middleware::Profile - stopwatch for request processing time
my $mw = HTTP::Engine::Middleware->new;
$mw->install( 'HTTP::Engine::Middleware::Profile' => {
logger => sub {
warn @_;
},
});
HTTP::Engine->new(
interface => {
module => 'YourFavoriteInterfaceHere',
request_handler => $mw->handler( \&handler ),
}
)->run();
This module profile request processing time.
dann
| HTTP-Engine-Middleware documentation | view source | Contained in the HTTP-Engine-Middleware distribution. |