Module / v1.0.0-beta.7

@typed/ui/HttpRouter

3 unique exports available through this public import path, including their members and aliases.

Learn this UI primitive →

import * as HttpRouter from "@typed/ui/HttpRouter";

Buffered server rendering

  • ssrForHttp

    variable

    Registers buffered, GET-only HTML routes for a matcher.

    Path captures take precedence over same-named query parameters. Rendering completes before the response is created; this adapter does not stream.

HTTP error responses

  • handleHttpServerError

    function

    Converts Effect HTTP server errors into empty 400, 404, or 500 responses. Other failures remain in the global error channel.

Streaming server rendering

  • streamingSsrForHttp

    variable

    Registers streaming, GET-only HTML routes for a matcher.

    Path captures take precedence over same-named query parameters. HTML chunks are emitted as they are rendered via renderToHtml and HttpServerResponse.stream.