A factory function that creates functions implementing the FinalizeHandler interface.
FinalizeHandler
The handler to invoke after this middleware has operated on the user input and before this middleware operates on the output.
Invariant data and functions for use by the handler.
A factory function that creates functions implementing the
FinalizeHandler
interface.