![]() |
![]()
| ![]() |
![]()
NAMEHTTP::Tiny::UA::Response - Wrap HTTP::Tiny response as objects with accessors VERSIONversion 0.006 SYNOPSISmy $res = HTTP::Tiny::UA->new->get( $url ); if ( $res->success ) { say "Got " . $res->header("Content-Length") . " bytes"; } DESCRIPTIONThis module wraps an HTTP::Tiny response as an object to provide some accessors and convenience methods. ATTRIBUTESsuccessurlprotocolstatusreasoncontentheadersMETHODSheader$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. AUTHORDavid Golden <dagolden@cpan.org> COPYRIGHT AND LICENSEThis software is Copyright (c) 2013 by David Golden. This is free software, licensed under: The Apache License, Version 2.0, January 2004
|