HTTP::Tiny::UA::Response - Wrap HTTP::Tiny response as objects with accessors
version 0.003
my $res = HTTP::Tiny->new->get( $url ); if ( $res->success ) { say "Got " . $res->header("Content-Length") . " bytes"; }
This module wraps an HTTP::Tiny response as an object to provide some accessors and convenience methods.
$response->header( "Content-Length" );
Return a header out of the headers hash. The field is case-insensitive. If the header was repeated, the value returned will be an array reference. Otherwise it will be a scalar value.
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install HTTP::Tiny::UA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Tiny::UA
CPAN shell
perl -MCPAN -e shell install HTTP::Tiny::UA
For more information on module installation, please visit the detailed CPAN module installation guide.