{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httprequest\n\n## Functions\n\n```go\nfunc PrefersHTML(req *http.Request) bool\n```\nPrefersHTML returns true if the request was made by something that looks like a browser, or can receive HTML\n\n```go\nfunc SchemeHost(req *http.Request) (string, string)\n```\nSchemeHost returns the scheme and host used to make this request. Suitable for use to compute scheme/host in returned 302 redirect Location. Note the returned host is not normalized, and may or may not contain a port. Returned values are based on the following information:\n\nHost: \\* X-Forwarded-Host/X-Forwarded-Port headers \\* Host field on the request (parsed from Host header) \\* Host in the request's URL (parsed from Request-Line)\n\nScheme: \\* X-Forwarded-Proto header \\* Existence of TLS information on the request implies https \\* Scheme in the request's URL (parsed from Request-Line) \\* Port (if included in calculated Host value, 443 implies https) \\* Otherwise, defaults to \"http\"\n\n","path":"github.com/2lambda123/openshift-origin/pkg/util/httprequest","name":"httprequest","synopsis":"","isRedistributable":true}
