POE::Component::FastCGI::Request - PoCo::FastCGI HTTP Request class


   use POE::Component::FastCGI::Request;
   my $response = POE::Component::FastCGI::Response->new($client, $id,
      $cgi, $query);


Objects of this class are generally created by POE::Component::FastCGI,

POE::Component::FastCGI::Request is a subclass of HTTP::Response so inherits all of its methods. The includes header() for reading headers.

It also wraps the enviroment variables found in FastCGI requests, so information such as the client's IP address and the server software in use is available.

$request = POE::Component::FastCGI::Request->new($client, $id, $cgi, $query)

Creates a new POE::Component::FastCGI::Request object. This deletes values from $cgi while converting it into a HTTP::Request object. It also assumes $cgi contains certain CGI variables. This generally should not be used directly, POE::Component::FastCGI creates these objects for you.

$response = $request->make_response([$response])

Makes a response object for this request or if the optional parameter is provided turns a normal HTTP::Response object into a POE::Component::FastCGI::Response object that is linked to this request.

$request->error($code[, $text])

Sends a HTTP error back to the user.


Gets the specified variable out of the CGI environment.

eg: $request->env("REMOTE_ADDR");


Gets the value of name from the query (GET or POST data). Without a parameter returns a hash reference containing all the query data.


Gets the value of the cookie with name from the request. Without a parameter returns a hash reference containing all the cookie data.


Copyright 2005, David Leadbeater 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::Response, HTTP::Request, POE::Component::FastCGI, POE.