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:

  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.



Raw FFI functions and types.



A FastCGI environment. This is an iterator that returns strings in the form name=value.


An HTTP message exchange. This is a pair of a request and a response.


The body of the request of an exchange.


A response for an exchange. This includes both the response status line, headers, and body.