POE::C...Request(3pm)
π POE::Component::Client::HTTP::Request π
okay so bestie, welcome to the manual page for POE::Component::Client::HTTP::Request β it's a little Perl module, it's part of the User Contributed Perl Documentation crew, and it's currently serving version 0.949. She's an HTTP request class. She's iconic. Let's get into it π
β¨ NAME β¨
POE::Component::Client::HTTP::Request β an HTTP request class. that's the whole name. short. sweet. slay.
πΈ VERSION πΈ
version 0.949
π¦ SYNOPSIS π¦
# Used internally by POE::Component::Client::HTTP
that's it. that's the synopsis. she's used internally, bestie β you're not really supposed to be driving her yourself. iykyk π
π DESCRIPTION π
okay so POE::Component::Client::HTTP::Request encapsulates the state of requests that POE::Component::Client::HTTP makes, like, throughout their entire life cycles. birth to death. main character arc. β¨
and listen β there turns out to be a lot of state to manage. like, a lot a lot. that's why this class exists, fr fr.
π CONSTRUCTOR π
new NAMED_PARAMETERS
Create a POE::Component::Client::HTTP object to manage a request. The constructor takes several named parameters:
Request=> HTTP_REQUEST β aPOE::Component::Client::HTTP::Requestobject encapsulates a plainHTTP::Request. Required. no skips, bestie.Factory=> POE_COMPONENT_CLIENT_HTTP_REQUESTFACTORY β the request may create additional requests during its lifetime, like when it's following redirects. TheFactoryparameter specifies thePOE::Component::Client::HTTP::RequestFactorythat may be used to create them. Required.Postback=> RESPONSE_POSTBACK βPOE::Component::Client::HTTPcreates a postback that will be used to send responses to the requesting session. Required.Progress=> PROGRESS_POSTBACK β sets the progress notification if the user has requested progress events. Optional π«ΆProxyβ sets the proxy used for this request, if requested by the user. Optional π
π METHODS π
ID
Return the request's unique ID. her little name tag. her social security number. π
return_response
Sends a response back to the user's session. Called by POE::Component::Client::HTTP when a complete response has arrived. she's done, she's served, she ate. π₯
add_eof
Called by POE::Component::Client::HTTP to indicate EOF has arrived. the end. the finale. π¬
add_content PARSED_DATA
Called by POE::Component::Client::HTTP to add content data to an incrementally built response. So if PARSED_DATA is an object, it gets treated like an HTTP::Headers object and its headers are assimilated into the response being built by the request. Otherwise, PARSED_DATA just gets appended to the response's content. π
timer TIMER
Accessor to manipulate the request's timeout timer. Sets the request's timer if TIMER is specified β otherwise it just fetches the one currently associated with the request. lowkey dual purpose, highkey useful.
create_timer TIMEOUT
Creates and sets a timer for this request. TIMEOUT is the number of seconds this request may live. give her a lifespan, bestie β³
remove_timeout
Turn off the timer associated with this request, and discard it. bye bye timer π
postback POSTBACK
Accessor to manipulate the postback associated with this request. Sets the postback if POSTBACK is defined β otherwise it just fetches it. same energy as timer, no cap.
does_redirect SOMETHING
FIXME β Not sure what this accessor does.
literally the original says that. even the source code said "idk bestie" π iconic honestly.
check_redirect
Check whether the last response is a redirect, whether the request is permitted to follow redirects, and whether the maximum number of redirects has not been met. Initiate a redirect if all conditions are favorable. three vibe checks, then we move. β¨
close_connection
Each active request object contains an internal connection. This method closes it. shutting the door gently πͺ
send_to_wheel
Transmit the request to the socket associated with this request. send her off to the wheel, girlboss π
wheel
An accessor to return the wheel associated with this request. not a hamster wheel. a POE wheel. still iconic.
error ERROR_CODE, ERROR_MESSAGE
Generate an error response, and post it back to the user's session. π
connect_error CONNECT_FAILURE_MESSAGE
Generate a connection error response, and post it back to the user's session. also π
host
Return the host this request is attempting to work with. π
port
Return the port this request is attempting to work with. β
scheme
Return the scheme for this request. like http or https or whatever she's wearing today π
π SEE ALSO π
POE::Component::Client::HTTPPOE
π BUGS π
None are currently known.
(not a single one. spotless. glowing. skin clear. β¨)
π AUTHOR & COPYRIGHTS π
POE::Component::Client::HTTP::Request is:
- Copyright 2004-2005 Martijn van Beers
- Copyright 2006 Rocco Caputo
All rights are reserved. POE::Component::Client::HTTP::Request is free software; you may redistribute it and/or modify it under the same terms as Perl itself. π«Ά
π CONTRIBUTORS π
Your name could be here.
(no like literally. the door is open. come thru bestie π)
π¬ CONTACT π¬
Rocco may be contacted by e-mail via <mailto:rcaputo@cpan.org>, and Martijn may be contacted by email via <mailto:martijn@cpan.org>.
The preferred way to report bugs or requests is through RT though. See <http://rt.cpan.org/NoAuth/Bugs.html?Dist=POE-Component-Client-HTTP> or mail <mailto:bug-POE-Component-Client-HTTP@rt.cpan.org>
For questions, try the POE mailing list (poe@perl.org) π§
aaaand that's the whole page, bestie!! this one's from the User Contributed Perl Documentation collection, sitting pretty at version 0.949, and this particular rendering was generated by perl v5.36.0 on 2022-11-19. go forth and manage your request state responsibly πβ¨ππ¦πΈπ π«Ά
π¦ 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