fcgi

package
v0.0.0-...-c4d3dc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

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

Constants

This section is empty.

Variables

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

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.

Functions

func ProcessEnv

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).

Types

type Child

type Child struct {
	// contains filtered or unexported fields
}

func NewChild

func NewChild(dg DataGatherer) *Child

func (*Child) ReadRequest

func (c *Child) ReadRequest(rdr io.Reader) error

type DataGatherer

type DataGatherer interface {
	ErrorInfo(string)
	RequestInfo(*http.Request)
	ResponseInfo(*http.Response, []byte)
	ReturnValue(int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL