ae.net.http.cgi.script

Support for implementing CGI scripts.

Members

Functions

inCGI
bool inCGI()

Return true if the current process was invoked as a CGI script.

isNPH
bool isNPH()

Return true if it seems likely that we are being invoked as an NPH (non-parsed headers) script.

readCGIRequest
CGIRequest readCGIRequest(string[string] env, File input)

Load the CGI request from the environment / standard input.

writeCGIHeaders
void writeCGIHeaders(HttpResponse r, Writer writer)

Write the response headers from a HTTP response in CGI format.

writeCGIResponse
void writeCGIResponse(HttpResponse r)

Write a HTTP response in CGI format.

writeNPHHeaders
void writeNPHHeaders(HttpResponse r, Writer writer)

Write the response headers from a HTTP response in CGI NPH format.

writeNPHResponse
void writeNPHResponse(HttpResponse r)

Write a HTTP response in CGI NPH format.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>