Crate fastcgi_sdk

Source
Expand description

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:

  1. It does one extra llocation per request, for ABI portability reasons.
  2. It does unnecessary strlen calls, because of unfortunate limitations in the standard library CStr implementation.

Modules§

ffi
Raw FFI functions and types.

Structs§

Environment
A FastCGI environment. This is an iterator that returns strings in the form name=value.
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.