Interceptor

sealed
trait Interceptor[F[_]]

Intercepts requests, and endpoint decode events. Using interceptors it's possible to:

  • customise the request that is passed downstream
  • short-circuit further processing and provide an alternate (or no) response
  • replace or modify the response that is sent back to the client

Interceptors can be called when the request is started to be processed (use RequestInterceptor in this case), or for each endpoint, with either input success of failure decoding events (see EndpointInterceptor).

To add an interceptors, modify the server options of the server interpreter.

Type Params
F

The effect type constructor.

class Object
trait Matchable
class Any