FastCGIProtoConnection

Higher-level FastCGI app server implementation, handling the various FastCGI response types.

Constructors

this
this(IConnection connection)

Members

Classes

Request
class Request

Base class for an abstract ongoing FastCGI request.

Functions

createRequest
Request createRequest()

Override this method to provide a factory for your Request implementation.

getRequest
Request getRequest(ushort requestId)

Return the request with the given ID.

killRequest
void killRequest(ushort requestId)

Clear the given request ID.

newRequest
Request newRequest(ushort requestId)

Create and return a request with the given ID.

onRecord
void onRecord(FCGI_RecordHeader header, Data contentData)
Undocumented in source. Be warned that the author may not have intended to support it.
sendRecord
void sendRecord(FCGI_RecordHeader header, Data contentData)
void sendRecord(FCGI_RecordType type, ushort requestId, Data contentData)

Write a raw FastCGI packet.

Variables

maxConns
size_t maxConns;

Maximum number of concurrent connections to advertise.

maxReqs
size_t maxReqs;

Maximum number of concurrent requests to advertise.

mpxsConns
bool mpxsConns;

Whether to advertise support for multiplexing.

requests
Request[] requests;

In-flight requests.

Inherited Members

From FastCGIConnection

connection
IConnection connection;

Connection used to construct this object.

log
Logger log;

Optional logger.

onReadData
void onReadData(Data data)
Undocumented in source. Be warned that the author may not have intended to support it.
onRecord
void onRecord(FCGI_RecordHeader header, Data contentData)
Undocumented in source.

Meta