Crate fastcgi_sdk [−] [src]
A safe Rust binding to the FastCGI SDK. For examples, see the shipped binaries.
The current version uses the C library of the FastCGI SDK. The plan is to rewrite it in Rust completely, removing this dependency and improving the interface.
The binding has near zero overhead compared to the C library. The differences are:
- It does one extra llocation per request, for ABI portability reasons.
- It does unnecessary
strlen
calls, because of unfortunate limitations in the standard libraryCStr
implementation.
Modules
ffi |
Raw FFI functions and types. |
Structs
Environment |
A FastCGI environment. This is an iterator that returns strings in the form
|
Exchange |
An HTTP message exchange. This is a pair of a request and a response. |
RequestBody |
The body of the request of an exchange. |
Response |
A response for an exchange. This includes both the response status line, headers, and body. |