Skip to main content

Module client

Module client 

Available on crate feature fastcgi only.
Expand description

FastCGI client implementation for Rama.

FastCgiClient wraps an inner connector service that establishes the IO stream, then sends a request using FastCGI framing and returns the application’s stdout as bytes.

This is the “web server” side of the FastCGI protocol — the piece that translates incoming requests into FastCGI framing and forwards them to a backend application.

Modules§

transporttransport
Turnkey FastCGI client transports.

Structs§

ClientError
Error returned by FastCGI client framing operations.
ClientOptions
Configuration for FastCgiClient and send_on.
FastCgiClient
FastCGI client that wraps an inner connector service.
FastCgiClientRequest
A FastCGI client request to send to a backend application server.
FastCgiClientResponse
The raw bytes received from a FastCGI application.
FastCgiTcpConnector
Open a TCP connection to a FastCGI backend (typically php-fpm at 127.0.0.1:9000).
FastCgiUnixConnector
Open a Unix-socket connection to a FastCGI backend (typically php-fpm at e.g. /run/php/php8.3-fpm.sock).

Functions§

send_on
Send a FastCGI request on an existing stream and return the response.
send_on_with_options
Send a FastCGI request on an existing stream with explicit options.