SCGIConnection

Implements the SCGI protocol over an abstract connection.

Constructors

this
this(IConnection connection)

Constructor.

Members

Functions

onReadData
void onReadData(Data data)
Undocumented in source. Be warned that the author may not have intended to support it.
sendResponse
void sendResponse(HttpResponse r)

Write a response.

Static functions

parseHeaders
string[string] parseHeaders(string s)

Parse SCGI-formatted headers.

Variables

connection
IConnection connection;

Connection used to construct this object.

handleRequest
void delegate(ref CGIRequest) handleRequest;

User-supplied callback for handling incoming requests.

log
Logger log;

Optional logger.

nph
bool nph;

Whether to operate in Non-Parsed Headers mode.

Meta