POE::Component::FastCGI::Response - PoCo::FastCGI HTTP Response class
use POE::Component::FastCGI::Response; my $response = POE::Component::FastCGI::Response->new($client, $id, 200, .. HTTP::Response parameters ..);
This module is generally not used directly, you should call POE::Component::FastCGI::Request's make_response method which returns an object of this class.
make_response
POE::Component::FastCGI::Response is a subclass of HTTP::Response so inherits all of its methods. The includes header() for setting output headers and content() for setting the content.
POE::Component::FastCGI::Response
header()
content()
Therefore the following methods mostly deal with actually sending the response:
Creates a new POE::Component::FastCGI::Response object, parameters from $code onwards are passed directly to HTTP::Response's constructor.
$code
Set and check streaming status
Set a callback to be called when this response is closed, mainly useful for streaming.
Sends the response object and ends the current connection.
Writes some text directly to the output stream, for use when you don't want to or can't send a HTTP::Response object.
Closes the output stream.
You don't normally need to use this as the object will automatically close when DESTROYed.
Sets the object to be a redirect to $url. You still need to call send to actually send the redirect.
send
Sends an error to the client, $code is the HTTP error code and $text is the content of the page to send.
Copyright 2005, David Leadbeater http://dgl.cx/contact. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please let me know.
POE::Component::FastCGI::Request, HTTP::Response, POE::Component::FastCGI, POE.
To install POE::Component::FastCGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::FastCGI
CPAN shell
perl -MCPAN -e shell install POE::Component::FastCGI
For more information on module installation, please visit the detailed CPAN module installation guide.