Skip to main content

Module proto

Module proto 

Available on crate feature fastcgi only.
Expand description

Implementation of the FastCGI Protocol.

Reference: FastCGI spec 1.0 (embedded in repo crate dir at specifications/fastcgi_spec.txt)

Modules§

cgi
CGI parameter name constants used in FastCGI FCGI_PARAMS and FCGI_GET_VALUES records.
params
FastCGI name-value pair encoding used in PARAMS and GET_VALUES records.
record
FastCGI record header and fixed-length record bodies.

Structs§

BeginRequestBody
Body of a FCGI_BEGIN_REQUEST record (8 bytes).
EndRequestBody
Body of a FCGI_END_REQUEST record (8 bytes).
RecordHeader
The 8-byte header that precedes every FastCGI record.
UnknownTypeBody
Body of a FCGI_UNKNOWN_TYPE management record (8 bytes).

Enums§

ProtocolError
ProtocolStatus
Protocol-level status of a completed request, carried in EndRequestBody.
RecordType
Type of a FastCGI record.
Role
Role of the FastCGI application in a request.

Constants§

FCGI_KEEP_CONN
Flag bit: keep the transport connection open after the request ends.
FCGI_MAX_CONTENT_LEN
Maximum content length of a single FastCGI record (2 bytes unsigned).
FCGI_NULL_REQUEST_ID
Request ID used for management records (GET_VALUES, GET_VALUES_RESULT, UNKNOWN_TYPE).
FCGI_VERSION_1
Protocol version as defined by the FastCGI specification.