FailFastCirceSupport

com.github.pjfanning.pekkohttpjsoniterscalacirce.FailFastCirceSupport
See theFailFastCirceSupport companion object

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
trait FailFastSupport
trait BaseSupport
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Inherited types

type SourceOf[A] = Source[A, _]

Attributes

Inherited from:
BaseSupport

Value members

Inherited methods

override def byteStringJsonUnmarshaller: Unmarshaller[ByteString, Json]

Attributes

Definition Classes
BaseCirceSupport -> BaseSupport
Inherited from:
BaseCirceSupport
protected def jsonSource[A](entitySource: SourceOf[A])(implicit encoder: Encoder[A], printer: Printer, support: JsonEntityStreamingSupport): SourceOf[ByteString]

Attributes

Inherited from:
BaseSupport
def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
BaseSupport
protected def sourceByteStringMarshaller(mediaType: WithFixedCharset): Marshaller[SourceOf[ByteString], MessageEntity]

Attributes

Inherited from:
BaseSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
BaseSupport

Inherited fields

protected val defaultMediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
BaseSupport
protected val jsonSourceStringMarshaller: Marshaller[SourceOf[ByteString], RequestEntity]

Attributes

Inherited from:
BaseSupport

Implicits

Inherited implicits

final implicit override def fromByteStringUnmarshaller[A : Decoder]: Unmarshaller[ByteString, A]

ByteString => A

ByteString => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for any A value

Definition Classes
FailFastSupport -> BaseSupport
Inherited from:
FailFastSupport
final implicit def jsonMarshaller(implicit printer: Printer): ToEntityMarshaller[Json]

Json => HTTP entity

Json => HTTP entity

Attributes

Returns

marshaller for JSON value

Inherited from:
BaseSupport
final implicit override val jsonUnmarshaller: FromEntityUnmarshaller[Json]

HTTP entity => Json

HTTP entity => Json

Attributes

Returns

unmarshaller for Json

Inherited from:
BaseCirceSupport
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:
BaseSupport
final implicit override val safeJsonUnmarshaller: FromEntityUnmarshaller[Either[ParsingFailure, Json]]

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
final implicit def safeUnmarshaller[A : Decoder]: FromEntityUnmarshaller[Either[Error, A]]

Attributes

Inherited from:
FailFastSupport
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:
BaseSupport
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:
BaseSupport
final implicit override def unmarshaller[A : Decoder]: FromEntityUnmarshaller[A]

HTTP entity => A

HTTP entity => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for A

Definition Classes
FailFastSupport -> BaseSupport
Inherited from:
FailFastSupport