Description

GetHost is a helper function that evaluates the http.Request and returns the hostname. It is able to detect, using the X-Forarded-For header, the original hostname when routed through a reverse proxy.