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§
- transport
transport - Turnkey FastCGI client transports.
Structs§
- Client
Error - Error returned by FastCGI client framing operations.
- Client
Options - Configuration for
FastCgiClientandsend_on. - Fast
CgiClient - FastCGI client that wraps an inner connector service.
- Fast
CgiClient Request - A FastCGI client request to send to a backend application server.
- Fast
CgiClient Response - The raw bytes received from a FastCGI application.
- Fast
CgiTcp Connector - Open a TCP connection to a FastCGI backend (typically php-fpm at
127.0.0.1:9000). - Fast
CgiUnix Connector - 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.