HTTP::Tiny::UA::Response - Wrap HTTP::Tiny response as objects with accessors
my $res = HTTP::Tiny::UA->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