NotAcceptableInterceptor
sttp.tapir.server.interceptor.content.NotAcceptableInterceptor
class NotAcceptableInterceptor[F[_]] extends EndpointInterceptor[F]
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
Members list
In this article