HTTP::Server::Simple::CGI::Environment - a HTTP::Server::Simple mixin to provide the CGI protocol
This mixin abstracts the CGI protocol out from HTTP::Server::Simple::CGI so that it's easier to provide your own CGI handlers with HTTP::Server::Simple which don't use CGI.pm
setup_environemnt is usually called in the superclass's accept_hook
setup_environemnt
This routine in this sub-class clears the environment to the start-up state.
Sets up the SERVER_URL environment variable
SERVER_URL
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.
header turns a single HTTP headers into CGI environment variables.
header
To install HTTP::Server::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Server::Simple
CPAN shell
perl -MCPAN -e shell install HTTP::Server::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.