sttp.tapir.server.interceptor.reject
Members list
Type members
Classlikes
case class DefaultRejectHandler[F[_]](response: (StatusCode, String) => ValuedEndpointOutput[_], defaultStatusCodeAndBody: Option[(StatusCode, String)]) extends RejectHandler[F]
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RejectHandler[F]class Objecttrait Matchableclass AnyShow all
object DefaultRejectHandler
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DefaultRejectHandler.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultRejectHandler[F]
object RejectHandler
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RejectHandler.type
class RejectInterceptor[F[_]](handler: RejectHandler[F]) extends RequestInterceptor[F]
Specifies what should be done if decoding the request has failed for all endpoints, and multiple endpoints have been interpreted (doesn't do anything when interpreting a single endpoint).
Specifies what should be done if decoding the request has failed for all endpoints, and multiple endpoints have been interpreted (doesn't do anything when interpreting a single endpoint).
By default, if there's a method decode failure, this means that the path must have matched (as it's decoded first); then, returning a 405 (method not allowed).
In other cases, not returning a response, assuming that the interpreter will return a "no match" to the server implementation.
Attributes
- Companion
- object
- Supertypes
object RejectInterceptor
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RejectInterceptor.type
In this article