IO::Lam...serAgent(3)

πŸ“¦ version 1.34, in alpine 3.24

πŸ’… 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 a LWP::ConnCache object. One cache to share, iconic.
  • cookie_jar $JAR β€” shared instance of a HTTP::Cookies object. Cookie jar shared, snack drawer energy. πŸ“
  • protocol $HTTP β€” default is HTTP/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 a HTTP::Response object 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 default User-Agent header. 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