Skip to main content

Module http

Module http 

Available on crate features fastcgi and http only.
Expand description

HTTP adaptive layers for FastCGI.

Bridges the HTTP and FastCGI worlds in both directions:

  • Client side (FastCgiHttpClient, FastCgiHttpClientConnector): send HTTP requests to a FastCGI backend, with automatic CGI environment construction and CGI stdout parsing.

  • Server side (FastCgiHttpService): wrap any HTTP Service<Request, Output=Response> as a FastCGI application service, so it can be deployed behind nginx/Apache without changes.

Structs§

FastCgiHttpClient
HTTP-to-FastCGI client.
FastCgiHttpClientConnector
A connector that translates HTTP requests into FastCGI connections.
FastCgiHttpEnv
Per-request override of selected CGI environment variables.
FastCgiHttpService
A FastCGI application service that wraps an inner HTTP service.