- Companion
- class
Type members
Classlikes
Value members
Concrete methods
Creates default Http4sServerOptions with additionalInterceptors
, sitting between two configurable
interceptor groups.
Creates default Http4sServerOptions with additionalInterceptors
, sitting between two configurable
interceptor groups.
The options can be then further customised using copy constructors or the methods to append/prepend interceptors.
- Value Params
- additionalInterceptors
Additional interceptors, e.g. handling decode failures, or providing alternate responses.
- decodeFailureHandler
The decode failure handler, from which an interceptor will be created.
- exceptionHandler
Whether to respond to exceptions, or propagate them to http4s.
- rejectInterceptor
How to respond when decoding fails for all interpreted endpoints.
- serverLog
The server log using which an interceptor will be created, if any. To keep the default, use
Http4sServerOptions.Log.defaultServerLog
- unsupportedMediaTypeInterceptor
Whether to return 415 (unsupported media type) if there's no body in the endpoint's outputs, which can satisfy the constraints from the
Accept
header