Franck Cuny > Net-HTTP-Spore-0.05 > Net::HTTP::Spore::Middleware::Runtime

Download:
Net-HTTP-Spore-0.05.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.05   Source   Latest Release: Net-HTTP-Spore-0.06

NAME ^

Net::HTTP::Spore::Middleware::Runtime - add a new header with runtime

VERSION ^

version 0.05

SYNOPSIS ^

    my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
    $client->enable('Runtime');

    my $result = $client->public_timeline;
    say "request executed in ".$result->header('X-Spore-Runtime');

DESCRIPTION ^

Net::HTTP::Spore::Middleware::Runtime is a middleware that add a new header to the response's headers: X-Spore-Runtime. The value of the header is the time the request took to be executed.

AUTHOR ^

franck cuny <franck@lumberjaph.net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by linkfluence.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: