NAME

Continuity::Adapt::FCGI::Request - PoCo::FastCGI HTTP Request class

SYNOPSIS

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

DESCRIPTION

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

Continuity::Adapt::FCGI::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.

Code take wholesale from POE::Component::FastCGI::Request

$request = Continuity::Adapt::FCGI::Request->new($client, $id, $cgi, $query)

Creates a new Continuity::Adapt::FCGI::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.

$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.

$request->cookie([$name])

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.