Type Alias: MiddlewareHandler
MiddlewareHandler = (
invocation,next) =>Promise<unknown>
A middleware function: it runs around the rest of the pipeline (see Middleware.handle).
Parameters
invocation
The request.
next
Runs the rest of the pipeline.
Returns
Promise<unknown>
The result given to the previous middleware (finally, to the adapter).