POE::C...actory(3pm)
π¦ POE::Component::Client::HTTP::RequestFactory β the vibe
okay bestie, welcome to POE::Component::Client::HTTP::RequestFactory, aka an HTTP request factory object. That's the whole name, we're not shortening it, it's iconic π
This page lives in the User Contributed Perl Documentation section, filed under manual page 3pm (we're folding that in so it doesn't just sit there awkwardly at the top).
Version: 0.949 β¨ β yes, girl, we know the version, it's right there.
β¨ SYNOPSIS β¨
# Used internally by POE::Component::Client::HTTP
That's it. That's the synopsis. She's a private girlie, she's for internal use, no cap. π
π CONSTRUCTOR π
new
Creates a brand-new request factory object, slay. She wants her parameters handed to her in a hashref, like the main character she is. π«Ά
The following parameters get accepted β and if you want the full tea on any of them, they're explained in detail in POE::Component::Client::HTTP:
AgentMaxSizeStreamingProtocolFromCookieJarNoProxyProxyFollowRedirectsTimeout
All ten. Counted them twice. No skips, no skimming, periodt. π
π METHODS π
timeout [$timeout]
The method that lets you query and/or change the timeout value for requests created by this factory. She's flexible like that. π
is_streaming
Accessor for the Streaming parameter. Just vibes, just reading. β¨
agent
Accessor to the Agent parameter. Say hi to her. πΈ
from
Getter/setter for the From parameter. Read it, write it, whatever you need, bestie. π
create_request
Creates a new POE::Component::Client::HTTP::Request. She's making babies (objects). π¦
max_response_size
Method to retrieve the maximum size of a response, as set by the "MaxSize" parameter to Client::HTTP's "spawn()" method. Big fan of boundaries honestly. π
block_size
Accessor for the Streaming parameter. (Yes, same parameter as is_streaming β she contains multitudes. π)
frob_cookies $response
Stores the cookies from the HTTP::Response parameter passed in, straight into our cookie jar. Cookie jar stays stocked, as she should. π
max_redirect_count [$count]
Function to get/set the maximum number of redirects to follow automatically. This lets you retrieve or modify the value you passed with the FollowRedirects parameter to Client::HTTP's "spawn" method. π₯
parse_proxy $proxy
This one is a static method, used for parsing proxies. The $proxy can be:
- an array reference like
[host, port], or - a comma separated string like
"http://1.2.3.4:80/,http://2.3.4.5:80/"
parse_proxy() returns an array reference of two-element tuples (which are also array references), each one holding a host and a port:
[ [ host1, port1 ],
[ host2, port2 ],
...
]
Nested arrays, nested energy. π§
Heads up bestie: this whole thing is documented as used internally by POE::Component::Client::HTTP, so if you're poking at it directly, know what you're doing. π
okay that's the page!! every single parameter, every method, every return shape, all of it, preserved like a pressed flower πΈ
cute sign-off time: this page is from perl v5.36.0, dated 2022-11-19, and it belongs to the POE::C...actory(3pm) manual page. mwah π bye bestie!!
π¦ where this page comes from
- debian bookworm: libpoe-component-client-http-perl 0.949-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpoe-component-client-http-perl 0.949-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoe-component-client-http-perl 0.949-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoe-component-client-http-perl 0.949-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoe-component-client-http-perl 0.949-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms