IO::Lam...serAgent(3)
π NAME π
IO::Lambda::HTTP::UserAgent β common properties for http requests. That's the name, bestie. This page is the IO::Lam...serAgent(3) manual page from User Contributed Perl Documentation. π«Ά
πΈ DESCRIPTION πΈ
Okay so this module is a simple convenience wrapper for IO::Lambda::HTTP::Client for shared properties such as cookies, connection cache, etc. It's giving "one little user-agent bestie to hold the shared stuff" energy. β¨
β¨ 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. New instance, who dis? πconn_cache $CACHEβ shared instance of aLWP::ConnCacheobject. One cache to share, iconic.cookie_jar $JARβ shared instance of aHTTP::Cookiesobject. Cookie jar shared, snack drawer energy. πprotocol $HTTPβ default isHTTP/1.1. That's the protocol default, periodt.request HTTP::Request, %OPTIONSβ creates a lambda that would end when the request is finished. The lambda returns either aHTTP::Responseobject or an error string. This is the main character method tbh.
Options:
class $STRING = IO::Lambda::HTTP::Clientβ sets class of a HTTP client. Exact string, no cap.
signature $STRINGβ the defaultUser-Agentheader. Put your signature on it. β¨timeout $INTEGERβ timeout for requests, default 60 seconds. Don't wait forever, bestie. β³
Source/version/date check, bestie: perl v5.42.2, dated 2026-02-15, and the page handle is IO::Lam...serAgent(3). Byeee π
π¦ where this page comes from
- alpine 3.24: perl-io-lambda-doc 1.34-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms