host
HTTPS host to redirect to: an ASCII host name, an IPv4 address or a bracketed IPv6 literal. Set the port with sslPort; a :port (1 to 65535) appended to the host is still accepted for compatibility, and is then used as given, so leave sslPort at its default when doing that. Defaults to null, which keeps the host of the incoming request, call.request.origin.serverHost: the client's Host header, or its X-Forwarded-Host, X-Forwarded-Server or Forwarded: host= value when Ktor's XForwardedHeaders or ForwardedHeaders plugin is installed. A router that routes on Host, such as Heroku's, does not check those headers, so always set it, or, for an application that serves several domains, set allowedHosts.