http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 4 Imported by: 1

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