{"modulePath":"github.com/julz/gorouter","version":"v0.0.0-20140805214930-eb0d769abc0d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package proxy\n\n## Constants\n\n```go\nconst (\n\tVcapCookieId    = \"__VCAP_ID__\"\n\tStickyCookieKey = \"JSESSIONID\"\n)\n```\n\n## Types\n\n```go\ntype AfterRoundTrip func(rsp *http.Response, endpoint *route.Endpoint, err error)\n```\n\n```go\ntype LookupRegistry interface {\n\tLookup(uri route.Uri) *route.Pool\n}\n```\n\n```go\ntype Proxy interface {\n\tServeHTTP(responseWriter http.ResponseWriter, request *http.Request)\n\tWait()\n}\n```\n\n```go\nfunc NewProxy(args ProxyArgs) Proxy\n```\n\n```go\ntype ProxyArgs struct {\n\tEndpointTimeout time.Duration\n\tIp              string\n\tTraceKey        string\n\tRegistry        LookupRegistry\n\tReporter        ProxyReporter\n\tAccessLogger    access_log.AccessLogger\n}\n```\n\n```go\ntype ProxyReporter interface {\n\tCaptureBadRequest(req *http.Request)\n\tCaptureBadGateway(req *http.Request)\n\tCaptureRoutingRequest(b *route.Endpoint, req *http.Request)\n\tCaptureRoutingResponse(b *route.Endpoint, res *http.Response, t time.Time, d time.Duration)\n}\n```\n\n```go\ntype RequestHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRequestHandler(request *http.Request, response http.ResponseWriter, r ProxyReporter,\n\talr *access_log.AccessLogRecord) RequestHandler\n```\n\n```go\nfunc (h *RequestHandler) HandleBadGateway(err error)\n```\n\n```go\nfunc (h *RequestHandler) HandleHeartbeat()\n```\n\n```go\nfunc (h *RequestHandler) HandleMissingRoute()\n```\n\n```go\nfunc (h *RequestHandler) HandleTcpRequest(iter route.EndpointIterator)\n```\n\n```go\nfunc (h *RequestHandler) HandleUnsupportedProtocol()\n```\n\n```go\nfunc (h *RequestHandler) HandleWebSocketRequest(iter route.EndpointIterator)\n```\n\n```go\nfunc (h *RequestHandler) Logger() *steno.Logger\n```\n\n","path":"github.com/julz/gorouter/proxy","name":"proxy","synopsis":"","isRedistributable":true}
