A Middleware
represents the implementation of a MiddlewareSpec
,
intercepting parts of the request, and appending to the response.
- Companion:
- object
Type members
Types
Value members
Abstract methods
Processes an incoming request, whose relevant parts are encoded into I
,
the middleware input, and then returns an effect that will produce both
middleware-specific state (which will be passed to the outgoing handlerr),
together with a decision about whether to continue or abort the handling of
the request.
Processes an incoming request, whose relevant parts are encoded into I
,
the middleware input, and then returns an effect that will produce both
middleware-specific state (which will be passed to the outgoing handlerr),
together with a decision about whether to continue or abort the handling of
the request.
Processes an outgoing response together with the middleware state (produced
by the incoming handler), returning an effect that will produce O
, which
will in turn be used to patch the response.
Processes an outgoing response together with the middleware state (produced
by the incoming handler), returning an effect that will produce O
, which
will in turn be used to patch the response.