HTTP::Server::Simple::CGI::Environment (3)
Leading comments
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28) Standard preamble: ========================================================================
NAME
HTTP::Server::Simple::CGI::Environment - a HTTP::Server::Simple mixin to provide the CGI protocolDESCRIPTION
This mixin abstracts theCGI
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_environment
"setup_environemnt" is usually called in the superclass's accept_hookThis routine in this sub-class clears the environment to the start-up state.
setup_server_url
Sets up the "SERVER_URL" environment variablesetup_environment_from_metadata
This method sets upCGI
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
"header" turns a singleHTTP
headers into CGI
environment variables.