com.github.pjfanning.pekkohttpcirce.FailFastCirceSupport
See theFailFastCirceSupport companion object
trait FailFastCirceSupport extends BaseCirceSupport, FailFastUnmarshaller
Automatic to and from JSON marshalling/unmarshalling using an in-scope circe protocol. The unmarshaller fails fast, throwing the first Error
encountered.
To use automatic codec derivation import io.circe.generic.auto._
.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
object FailFastCirceSupport
Members list
Type members
Inherited types
Attributes
- Inherited from:
- BaseCirceSupport
Value members
Inherited methods
Attributes
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- BaseCirceSupport
Implicits
Inherited implicits
Attributes
- Definition Classes
- Inherited from:
- FailFastUnmarshaller
Json
=> HTTP entity
HTTP entity => Json
final implicit def marshaller[A : Encoder](implicit evidence$1: Encoder[A], printer: Printer): ToEntityMarshaller[A]
A
=> HTTP entity
A
=> HTTP entity
Type parameters
- A
-
type to encode
Attributes
- Returns
-
marshaller for any
A
value - Inherited from:
- BaseCirceSupport
HTTP entity => Either[io.circe.ParsingFailure, Json]
HTTP entity => Either[io.circe.ParsingFailure, Json]
Attributes
- Returns
-
unmarshaller for
Either[io.circe.ParsingFailure, Json]
- Inherited from:
- BaseCirceSupport
Attributes
- Inherited from:
- FailFastUnmarshaller
implicit def sourceMarshaller[A](implicit writes: Encoder[A], printer: Printer, support: JsonEntityStreamingSupport): ToEntityMarshaller[SourceOf[A]]
SourceOf[A]
=> HTTP entity
SourceOf[A]
=> HTTP entity
Type parameters
- A
-
type to encode
Attributes
- Returns
-
marshaller for any
SourceOf[A]
value - Inherited from:
- BaseCirceSupport
implicit def sourceUnmarshaller[A : Decoder](implicit evidence$1: Decoder[A], support: JsonEntityStreamingSupport): FromEntityUnmarshaller[SourceOf[A]]
HTTP entity => Source[A, _]
HTTP entity => Source[A, _]
Type parameters
- A
-
type to decode
Attributes
- Returns
-
unmarshaller for
Source[A, _]
- Inherited from:
- BaseCirceSupport
Attributes
- Definition Classes
- Inherited from:
- FailFastUnmarshaller
In this article