Type Alias IWinterTcMiddlewareObject

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

An object-based WinterTC middleware.

Implements the WinterTC middleware contract as an invokable object rather than a plain function. Receives the incoming Request and a next handler, and returns a Response, either synchronously or as a promise.

This is the object-oriented alternative to WinterTcMiddlewareFn.

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