sttp.tapir.server.interceptor.decodefailure

Members list

Type members

Classlikes

trait DecodeFailureHandler[F[_]]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
trait Interceptor[F]
class Object
trait Matchable
class Any
case class DefaultDecodeFailureHandler[F[_]](respond: DecodeFailureContext => Option[(StatusCode, List[Header])], failureMessage: DecodeFailureContext => String, response: (StatusCode, List[Header], String) => ValuedEndpointOutput[_]) extends DecodeFailureHandler[F]

A decode failure handler, which:

A decode failure handler, which:

  • decides whether the given decode failure should lead to a response (and if so, with which status code and headers), using respond
  • in case a response is sent, creates the message using failureMessage
  • in case a response is sent, creates the response using response, given the status code, headers, and the created failure message. By default, the headers might include authentication challenge.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type