Name
new
Synopsis
$ua
->new(%options
)
Constructs a new LWP::UserAgent object and returns a
reference to it. Key/value arguments may be provided to set up
the initial state of the user agent. new
accepts several options that
correspond to the following attribute methods:
Key | Default |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
The options are:
env_proxy
If set to true, proxy settings are read from environment variables.
keep_alive
A number that will be passed on as the
total_capacity
for the connection. A LWP::ConnCache is set up (see theconn_cache
method), and the HTTP/1.1 protocol module is enabled.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.