Alex Vandiver > HTTP-Server-Simple-0.36 > HTTP::Server::Simple::CGI

Download:
HTTP-Server-Simple-0.36.tar.gz

Dependencies

Annotate this POD (1)

CPAN RT

New  2
Open  11
View Bugs
Report a bug
Source   Latest Release: HTTP-Server-Simple-0.41

NAME ^

HTTP::Server::Simple::CGI - CGI.pm-style version of HTTP::Server::Simple

DESCRIPTION ^

HTTP::Server::Simple was already simple, but some smart-ass pointed out that there is no CGI in HTTP, and so this module was born to isolate the CGI.pm-related parts of this handler.

accept_hook

The accept_hook in this sub-class clears the environment to the start-up state.

post_setup_hook

Initializes the global CGI object, as well as other environment settings.

setup

This method sets up CGI environment variables based on various meta-headers, like the protocol, remote host name, request path, etc.

See the docs in HTTP::Server::Simple for more detail.

handle_request CGI

This routine is called whenever your server gets a request it can handle.

It's called with a CGI object that's been pre-initialized. You want to override this method in your subclass

handler

Handler implemented as part of HTTP::Server::Simple API