Crate fastcgi

Source
Expand description

Pure Rust implementation of FastCGI 1.0.

Example usage:

extern crate fastcgi;

use std::io::Write;

fn main() {
    fastcgi::run(|mut req| {
        write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
        .unwrap_or(());
    });
}

Structs§

  • Request objects are what a FastCGI application will primarily deal with throughout its lifetime.

Enums§

Functions§

  • Runs as a FastCGI process with the given handler.
  • Accepts requests from a user-supplied raw file descriptor. IPv4, IPv6, and Unix domain sockets are supported.
  • Accepts requests from a user-supplied TCP listener.

Type Aliases§