hm

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAuthorizationSyntax = "syntax error in authorization header: %v"
)

Variables

This section is empty.

Functions

func AddHttpHeadersToParameters added in v0.7.0

func AddHttpHeadersToParameters(parameters *[]*nvpair.NameValuePair, headers http.Header)

AddHttpHeadersToParameters adds HTTP headers to FastCGI parameters.

func ComposeCgiParameterNameFromHttpHeader added in v0.7.0

func ComposeCgiParameterNameFromHttpHeader(headerName string) (cgiParamName string)

ComposeCgiParameterNameFromHttpHeader composes CGI parameter name using the specified HTTP header name. See the 4.1.18 section of the CGI 1.1 interface specification.

func ParseAuthorizationHeader added in v0.7.0

func ParseAuthorizationHeader(header string) (scheme string, parameters string, err error)

ParseAuthorizationHeader parses the 'Authorization' HTTP header. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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