NotAcceptableInterceptor

sttp.tapir.server.interceptor.content.NotAcceptableInterceptor

If no body in the endpoint's outputs satisfies the constraints from the request's Accept header, returns an empty response with status code 406, before any further processing (running the business logic) is done.

Attributes

Graph
Supertypes
trait Interceptor[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply[B](responder: Responder[F, B], endpointHandler: EndpointHandler[F, B]): EndpointHandler[F, B]

Type parameters

B

The interpreter-specific, low-level type of body.

Attributes

Definition Classes