Movatterモバイル変換


[0]ホーム

URL:


fcgi

packagestandard library
go1.25.4Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License:BSD-3-ClauseImports:14Imported by:1,107

Details

Repository

cs.opensource.google/go/go

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

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 ofa request after the connection to the web server has been closed.

View Source
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

funcProcessEnvadded ingo1.9

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

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

func Serve(lnet.Listener, handlerhttp.Handler)error

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp