|
NAMEPOE::Component::Client::HTTP::Request - an HTTP request classVERSIONversion 0.949SYNOPSIS# Used internally by POE::Component::Client::HTTP DESCRIPTIONPOE::Component::Client::HTTP::Request encapsulates the state of requests POE::Component::Client::HTTP requests throughout their life cycles. There turns out to be a lot of state to manage.CONSTRUCTORnew NAMED_PARAMETERSCreate a POE::Component::Client::HTTP object to manage a request. The constructor takes several named parameters:
METHODSIDReturn the request's unique ID.return_responseSends a response back to the user's session. Called by POE::Component::Client::HTTP when a complete response has arrived.add_eofCalled by POE::Component::Client::HTTP to indicate EOF has arrived.add_content PARSED_DATACalled by POE::Component::Client::HTTP to add content data to an incrementally built response. If PARSED_DATA is an object, it is treated like an HTTP::Headers object and its headers are assimilated into the response being built by the request. Otherwise the PARSED_DATA is appended to the response's content.timer TIMERAccessor to manipulate the request's timeout timer. Sets the request's timer if TIMER is specified, otherwise merely fetches the one currently associated with the request.create_timer TIMEOUTCreates and sets a timer for this request. TIMEOUT is the number of seconds this request may live.remove_timeoutTurn off the timer associated with this request, and discard it.postback POSTBACKAccessor to manipulate the postback associated with this request. Sets the postback if POSTBACK is defined, otherwise merely fetches it.does_redirect SOMETHINGFIXME - Not sure what this accessor does.check_redirectCheck whether the last response is a redirect, the request is permitted to follow redirects, and the maximum number of redirects has not been met. Initiate a redirect if all conditions are favorable.close_connectionEach active request object contains an internal connection. This method closes it.send_to_wheelTransmit the request to the socket associated with this request.wheelAn accessor to return the wheel associated with this request.error ERROR_CODE, ERROR_MESSAGEGenerate an error response, and post it back to the user's session.connect_error CONNECT_FAILURE_MESSAGEGenerate a connection error response, and post it back to the user's session.hostReturn the host this request is attempting to work with.portReturn the port this request is attempting to work with.schemeReturn the scheme for this request.SEE ALSOPOE::Component::Client::HTTP POEBUGSNone are currently known.AUTHOR & COPYRIGHTSPOE::Component::Client::HTTP::Request is
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. CONTRIBUTORSYour name could be here.CONTACTRocco 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)
Visit the GSP FreeBSD Man Page Interface. |