HTTP::Server::Simple::CGI::Environment(3pm)

HTTP::Server::Simple::CGI::Environment3pm

A http::server::simple mixin to provide the cgi protocol

Overview

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

header

"header" turns a single HTTP headers into CGI environment variables.

Releases

11 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0
  3. 6.0–7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12–13
  9. Arch

From perl-http-server-simple 0.52-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.