package middleware
Module Make.DiverterSource
Source
type ('next_input, 'next_output, 'output) t = | Stop of 'output M.t(*Control stops here, and the
*)'outputis returned to the wrappingMiddleware.| Continue of 'next_input * ('next_output -> 'output M.t)(*Control continues to the next
*)Middlewareg, which receives'next_inputas input. Aftergruns, its result is transformed with the given function.
Union, determining whether or not to run a subsequent Middleware or return early.