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_proxyIf set to true, proxy settings are read from environment variables.
keep_aliveA number that will be passed on as the
total_capacityfor the connection. A LWP::ConnCache is set up (see theconn_cachemethod), and the HTTP/1.1 protocol module is enabled.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access