{"modulePath":"github.com/cloudfoundry/gorouter","version":"v0.0.0-20250429140807-a602bb6a6243","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\n## Constants\n\n```go\nconst (\n\tVcapBackendHeader     = \"X-Vcap-Backend\"\n\tCfRouteEndpointHeader = \"X-Cf-RouteEndpoint\"\n\tVcapRouterHeader      = \"X-Vcap-Router\"\n\tVcapTraceHeader       = \"X-Vcap-Trace\"\n\tCfInstanceIdHeader    = \"X-CF-InstanceID\"\n\tCfAppInstance         = \"X-CF-APP-INSTANCE\"\n\tCfProcessInstance     = \"X-CF-PROCESS-INSTANCE\"\n\tCfRouterError         = \"X-Cf-RouterError\"\n)\n```\n\n## Functions\n\n```go\nfunc SetTraceHeaders(responseWriter http.ResponseWriter, routerIp, addr string)\n```\n\n## Types\n\n```go\ntype Authenticator func(user, password string) bool\n```\n\n```go\ntype BasicAuth struct {\n\thttp.Handler\n\tAuthenticator\n}\n```\n\n```go\nfunc (x *BasicAuth) ServeHTTP(w http.ResponseWriter, req *http.Request)\n```\n\n","path":"github.com/cloudfoundry/gorouter/common/http","name":"http","synopsis":"","isRedistributable":true}
