A generic middleware pipeline function that can either continue the pipeline or interrupt it. Can return a promise to wait on before next piece executed.
The next function should be called to continue on to the next piece in the
stack. It can be called with a single, optional argument: either the provided
done function or a new function that eventually calls done, to execute
logic after the stack completes. If the argument is not given, the provided
done will be assumed.
A generic middleware pipeline function that can either continue the pipeline or interrupt it. Can return a promise to wait on before next piece executed.
The next function should be called to continue on to the next piece in the
stack. It can be called with a single, optional argument: either the provided
done function or a new function that eventually calls done, to execute
logic after the stack completes. If the argument is not given, the provided
done will be assumed.
Generated using TypeDoc
A generic middleware pipeline function that can either continue the pipeline or interrupt it. Can return a promise to wait on before next piece executed.
The
nextfunction should be called to continue on to the next piece in the stack. It can be called with a single, optional argument: either the provideddonefunction or a new function that eventually calls done, to execute logic after the stack completes. If the argument is not given, the provided done will be assumed.