Expand description
Contains constants and models for fcgi data records.
use bytes::{Bytes, BytesMut};
use async_fcgi::fastcgi::*;
let mut b = BytesMut::with_capacity(96);
BeginRequestBody::new(FastCGIRole::Responder,0,1).append(&mut b);
let mut nv = NVBody::new();
nv.add(NameValuePair::new(Bytes::from(&b"SCRIPT_FILENAME"[..]),Bytes::from(&b"/home/daniel/Public/test.php"[..]))).expect("record full");
nv.to_record(RecordType::Params, 1).append(&mut b);
NVBody::new().to_record(RecordType::Params, 1).append(&mut b);
Structs§
- Begin
Request Body - EndRequest
Body - NVBody
- Body type for Params and GetValues. Holds multiple NameValuePair’s
- NVBody
List - Helper type to generate one or more NVBody Records, depending on the space needed
- NVDrain
- Name
Value Pair - Record
- FCGI record
- STDIN
Body - Unknown
Type Body
Enums§
- Body
- FastCGI
Role - FastCGI role
- Proto
Status - protocol_status component of EndRequestBody
- Record
Type - rtype of Header
Constants§
- LISTENSOCK_
FILENO - Listening socket file number
- MAX_
CONNS - The maximum number of concurrent transport connections this application will accept
- MAX_
REQS - The maximum number of concurrent requests this application will accept
- MPXS_
CONNS - If this application do multiplex connections