Net::HTTP::Spore::Middleware::Runtime - add a new header with runtime
version 0.05
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');
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.
franck cuny <franck@lumberjaph.net>
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.
To install Net::HTTP::Spore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP::Spore
CPAN shell
perl -MCPAN -e shell install Net::HTTP::Spore
For more information on module installation, please visit the detailed CPAN module installation guide.