Type Alias WinterTcMiddlewareFn

WinterTcMiddlewareFn: InvokableFn<
    [request: Request, next: WinterTcRequestHandler],
    Promise<Response>,
>

A function-based WinterTC middleware.

Receives the incoming Request and a next handler to delegate to the downstream handler or middleware in the chain. Returns a Response, either synchronously or as a promise.

This is the lightweight, functional alternative to IWinterTcMiddlewareObject.

IMPORT_PATH: "@daiso-tech/core/http-router/contracts"