taxum
    Preparing search index...

    Module routing

    The routing module provides a comprehensive set of components for handling HTTP routing and request processing.

    Key components:

    • HandlerFn - core request handler functions
    • Layer - middleware layers for request/response processing
    • MethodFilter - HTTP method filtering capabilities
    • Method and path-based routing functionality
    • Service-oriented request handling

    This module enables building flexible and type-safe HTTP routing systems with middleware support, method filtering, and structured request handling.

    import { m, Router } from "@taxum/core/routing";

    const router = new Router()
    .route("/", m.get(() => "Hello World!"));

    Classes

    MethodFilter
    MethodRouter
    Router

    Type Aliases

    ExtractorResult
    ExtractorResults
    HandlerFn
    Layer
    PathParams
    ServiceFn

    Variables

    m
    PATH_PARAMS

    Functions

    any
    handler
    on
    serviceFromHandler