Description

GetScheme is a helper function that evaluates the http.Request and returns the scheme, HTTP or HTTPS. It is able to detect, using the X-Forwarded-Proto, if the original request was HTTPS and routed through a reverse proxy with SSL termination.