IO::Lambda::HTTP::UserAgent - common properties for http requests
The module is a simple convenience wrapper for IO::Lambda::HTTP::Client for shared properties such as cookies, connection cache, etc.
IO::Lambda::HTTP::Client
use IO::Lambda::HTTP::UserAgent; use HTTP::Request; my $ua = IO::Lambda::HTTP::UserAgent->new; $ua->request( HTTP::Request->new( .. ) )->wait;
Creates a user agent instance
Shared instance of a LWP::ConnCache object
LWP::ConnCache
Shared instance of a HTTP::Cookies object
HTTP::Cookies
Default is HTTP/1.1
HTTP/1.1
Creates a lambda that would end when the request is finished. The lambda returns either a HTTP::Response object or an error string
HTTP::Response
Options:
Sets class of a HTTP client.
The default User-Agent header
User-Agent
Timeout for requests, default 60 seconds.
To install IO::Lambda, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Lambda
CPAN shell
perl -MCPAN -e shell install IO::Lambda
For more information on module installation, please visit the detailed CPAN module installation guide.