Redirects
The redirect provider allows to inform the client that the location of the actual resourceis different than the requested URI.
await Host.Create() .Handler(Redirect.To("http://google.com")) .RunAsync();
In this example, accessing http://localhost:8080 will redirect the client to theGoogle search engine. By default, the HTTP status 301 (permament redirect) will be sent, whichcan get customized to a temporary HTTP 307 redirect.