++ed by:
FVOX
1 non-PAUSE user
Author image Dmitry Karasik

NAME

IO::Lambda::HTTP::UserAgent - common properties for http requests

DESCRIPTION

The module is a simple convenience wrapper for IO::Lambda::HTTP::Client for shared properties such as cookies, connection cache, etc.

SYNOPSIS

   use IO::Lambda::HTTP::UserAgent;
   use HTTP::Request;
   my $ua = IO::Lambda::HTTP::UserAgent->new;
   $ua->request( HTTP::Request->new( .. ) )->wait;

API

new %OPTIONS

Creates a user agent instance

conn_cache $CACHE

Shared instance of a LWP::ConnCache object

Shared instance of a HTTP::Cookies object

protocol $HTTP

Default is HTTP/1.1

signature $STRING

The default User-Agent header

signature $STRING

Timeout for requests, default 60 seconds.