Movatterモバイル変換


[0]ホーム

URL:


CTRL K
    Documentation
    Content
    Handlers
    Redirects

    Redirects

    GenHTTP.Modules.Basics

    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.

    Share


    RedirectsReverse Proxies

    [8]ページ先頭

    ©2009-2025 Movatter.jp