++ed by:

4 PAUSE users
2 non-PAUSE users.

Brock Wilcox


Continuity::Adapt::FCGI - Use HTTP::Daemon as a continuation server


This module provides the glue between FastCGI Web and Continuity, translating FastCGI requests into HTTP::RequestWrapper objects that are sent to applications running inside Continuity.


$server = new Continuity::Adapt::FCGI(...)

Create a new continuation adaptor and HTTP::Daemon. This actually starts the HTTP server which is embeded.

mapPath($path) - map a URL path to a filesystem path
sendStatic($c, $path) - send static file to the $c filehandle

We cheat here... use 'magic' to get mimetype and send that. then the binary file

# # # #

package Continuity::Adapt::FCGI::Request; use strict;

use CGI::Util qw(unescape); use HTTP::Headers; use base 'HTTP::Request'; use base 'Continuity::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.


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.




  Brock Wilcox <awwaiid@thelackthereof.org> - http://thelackthereof.org/
  Scott Walters <scott@slowass.net> - http://slowass.net/


  Copyright (c) 2004-2007 Brock Wilcox <awwaiid@thelackthereof.org>. All rights
  reserved.  This program is free software; you can redistribute it and/or
  modify it under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 142:

'=item' outside of any '=over'

Around line 315:

You forgot a '=back' before '=head1'