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.
Request
next
Response
This is the object-oriented alternative to WinterTcMiddlewareFn.
IMPORT_PATH: "@daiso-tech/core/http-router/contracts"
"@daiso-tech/core/http-router/contracts"
An object-based WinterTC middleware.
Implements the WinterTC middleware contract as an invokable object rather than a plain function. Receives the incoming
Requestand anexthandler, and returns aResponse, either synchronously or as a promise.This is the object-oriented alternative to WinterTcMiddlewareFn.
IMPORT_PATH:
"@daiso-tech/core/http-router/contracts"