public static bool UseHttps(this IRequest httpReq) { return HostContext.Config.UseHttpsLinks || httpReq.GetHeader(HttpHeaders.XForwardedProtocol) == "https"; }