http

package
v0.0.0-...-c6b0bb1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 4 Imported by: 33

Documentation

Index

Constants

View Source
const (
	VcapBackendHeader     = "X-Vcap-Backend"
	CfRouteEndpointHeader = "X-Cf-RouteEndpoint"
	VcapRouterHeader      = "X-Vcap-Router"
	VcapTraceHeader       = "X-Vcap-Trace"
	CfInstanceIdHeader    = "X-CF-InstanceID"
	CfAppInstance         = "X-CF-APP-INSTANCE"
	CfRouterError         = "X-Cf-RouterError"
)

Variables

This section is empty.

Functions

func SetTraceHeaders

func SetTraceHeaders(responseWriter http.ResponseWriter, routerIp, addr string)

Types

type Authenticator

type Authenticator func(user, password string) bool

type BasicAuth

type BasicAuth struct {
	http.Handler
	Authenticator
}

func (*BasicAuth) ServeHTTP

func (x *BasicAuth) ServeHTTP(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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