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 code was borrowed from POE::Component::FastCGI
- $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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 86:
=over without closing =back