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)
Undocumented in source. Be warned that the author may not have intended to support it.
writeCGIResponse
void writeCGIResponse(HttpResponse r)
Undocumented in source. Be warned that the author may not have intended to support it.
writeNPHHeaders
void writeNPHHeaders(HttpResponse r, Writer writer)
Undocumented in source. Be warned that the author may not have intended to support it.
writeNPHResponse
void writeNPHResponse(HttpResponse r)
Undocumented in source. Be warned that the author may not have intended to support it.

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 <vladimir@thecybershadow.net>