fcgi
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package fcgi implements the FastCGI protocol.
Seehttps://fast-cgi.github.io/ for an unofficial mirror of theoriginal documentation.
Currently only the responder role is supported.
Index¶
Constants¶
This section is empty.
Variables¶
var ErrConnClosed =errors.New("fcgi: connection to web server closed")ErrConnClosed is returned by Read when a handler attempts to read the body ofa request after the connection to the web server has been closed.
var ErrRequestAborted =errors.New("fcgi: request aborted by web server")ErrRequestAborted is returned by Read when a handler attempts to read thebody of a request that has been aborted by the web server.
Functions¶
funcProcessEnv¶added ingo1.9
ProcessEnv returns FastCGI environment variables associated with the request rfor which no effort was made to be included in the request itself - the datais hidden in the request's context. As an example, if REMOTE_USER is set for arequest, it will not be found anywhere in r, but it will be included inProcessEnv's response (via r's context).
funcServe¶
Serve accepts incoming FastCGI connections on the listener l, creating a newgoroutine for each. The goroutine reads requests and then calls handlerto reply to them.If l is nil, Serve accepts connections from os.Stdin.If handler is nil,http.DefaultServeMux is used.
Types¶
This section is empty.