From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html (limited to 'devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html') diff --git a/devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html b/devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html new file mode 100644 index 00000000..521fefbb --- /dev/null +++ b/devdocs/go/net%2Fhttp%2Ffcgi%2Findex.html @@ -0,0 +1,19 @@ +

Package fcgi

Overview

Package fcgi implements the FastCGI protocol.

+

See https://fast-cgi.github.io/ for an unofficial mirror of the original documentation.

+

Currently only the responder role is supported.

Index

Package files

child.go fcgi.go

Variables

ErrConnClosed is returned by Read when a handler attempts to read the body of a request after the connection to the web server has been closed.

+
var ErrConnClosed = errors.New("fcgi: connection to web server closed")

ErrRequestAborted is returned by Read when a handler attempts to read the body of a request that has been aborted by the web server.

+
var ErrRequestAborted = errors.New("fcgi: request aborted by web server")

func ProcessEnv 1.9

func ProcessEnv(r *http.Request) map[string]string

ProcessEnv returns FastCGI environment variables associated with the request r for which no effort was made to be included in the request itself - the data is hidden in the request's context. As an example, if REMOTE_USER is set for a request, it will not be found anywhere in r, but it will be included in ProcessEnv's response (via r's context).

+

func Serve

func Serve(l net.Listener, handler http.Handler) error

Serve accepts incoming FastCGI connections on the listener l, creating a new goroutine for each. The goroutine reads requests and then calls handler to reply to them. If l is nil, Serve accepts connections from os.Stdin. If handler is nil, http.DefaultServeMux is used.

+

+ © Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
+ http://golang.org/pkg/net/http/fcgi/ +

+
-- cgit v1.2.3