{"modulePath":"github.com/getlantern/http-proxy","version":"v0.0.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc RespondBadGateway(w io.Writer, req *http.Request, msgs ...string)\n```\n\n```go\nfunc RespondOK(writer io.Writer, req *http.Request) error\n```\n\n## Types\n\n```go\ntype ErrorHandler interface {\n\tServeHTTP(w http.ResponseWriter, req *http.Request, err error)\n}\n```\n\n```go\nvar DefaultHandler ErrorHandler = \u0026StdHandler{}\n```\n\n```go\ntype ErrorHandlerFunc func(http.ResponseWriter, *http.Request, error)\n```\n\n```go\nfunc (f ErrorHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request, err error)\n```\nServeHTTP calls f(w, r).\n\n```go\ntype StdHandler struct {\n}\n```\n\n```go\nfunc (e *StdHandler) ServeHTTP(w http.ResponseWriter, req *http.Request, err error)\n```\n\n","path":"github.com/getlantern/http-proxy/utils","name":"utils","synopsis":"","isRedistributable":true}
