Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

HTTP::Server::Simple::CGI::Environment

Name HTTP::Server::Simple::CGI::Environment
Version
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/HTTP/Server/Simple/CGI/Environment.pm
Is Core No
Search CPAN for this module HTTP::Server::Simple::CGI::Environment
Documentation HTTP::Server::Simple::CGI::Environment
Module Details HTTP::Server::Simple::CGI::Environment

NAME

HTTP::Server::Simple::CGI::Environment - a HTTP::Server::Simple mixin to provide the CGI protocol


DESCRIPTION

This mixin abstracts the CGI protocol out from the HTTP::Server::Simple::CGI manpage so that it's easier to provide your own CGI handlers with the HTTP::Server::Simple manpage which don't use CGI.pm

setup_environment

setup_environemnt is usually called in the superclass's accept_hook

This routine in this sub-class clears the environment to the start-up state.

setup_server_url

Sets up the SERVER_URL environment variable

setup_environment_from_metadata

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 the HTTP::Server::Simple manpage for more detail.

header

header turns a single HTTP headers into CGI environment variables.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024