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).