++ed by:
GETTY

1 PAUSE user

Torsten Raudssus
and 1 contributors

NAME

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

SYNOPSIS

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

DESCRIPTION

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.

$request->env($name)

Gets the specified variable out of the CGI environment.

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

$request->query([$name])

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.

AUTHOR

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.

BUGS

Please let me know.

SEE ALSO

POE::Component::FastCGI::Response, HTTP::Request, POE::Component::FastCGI, POE.