Generic async middleware, handles a stack (or pipeline) of functions that to pass along and possibly modify state for a final piece of functionality.
Similar to Express middleware, every middleware
piece receives the same API
done. Each piece can either continue
the chain (by calling next) or interrupt the chain (by calling done).
If all middleware continues, a
complete function is called to handle the
Middleware may wrap the
done function to allow executing code in the second
half of the process (after
complete has been executed).
Different kinds of middleware may receive different information in the state object. For more details, see the API for each type of middleware.
Remember own name for tracing middleware
Contains middleware "pieces" (callbacks) to execute
Add a piece to the pipeline
Generated using TypeDoc