VertxCatsServerOptions

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def customInterceptors[F[_]](dispatcher: Dispatcher[F], metricsInterceptor: Option[MetricsRequestInterceptor[F, RoutingContext => Unit]], rejectInterceptor: Option[RejectInterceptor[F, RoutingContext => Unit]], exceptionHandler: Option[ExceptionHandler], serverLog: Option[ServerLog[Unit]], additionalInterceptors: List[Interceptor[F, RoutingContext => Unit]], unsupportedMediaTypeInterceptor: Option[UnsupportedMediaTypeInterceptor[F, RoutingContext => Unit]], decodeFailureHandler: DecodeFailureHandler)(implicit evidence$1: Async[F]): VertxCatsServerOptions[F]

Creates default VertxCatsServerOptions with additionalInterceptors, sitting between two configurable interceptor groups. The order of the interceptors corresponds to the ordering of the parameters.

Creates default VertxCatsServerOptions with additionalInterceptors, sitting between two configurable interceptor groups. The order of the interceptors corresponds to the ordering of the parameters.

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 vertx.

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 VertxEndpointOptions.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.

def default[F[_]](dispatcher: Dispatcher[F])(implicit evidence$2: Async[F]): VertxCatsServerOptions[F]