FailFastUnmarshaller

com.github.pjfanning.pekkohttpjsoniterscalacirce.FailFastUnmarshaller
trait FailFastUnmarshaller extends FailFastSupport

Mix-in this trait to fail on the first error during unmarshalling.

Attributes

Graph
Supertypes
trait FailFastSupport
trait BaseSupport
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Inherited types

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

Attributes

Inherited from:
BaseSupport

Value members

Inherited methods

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 and Abstract methods

def byteStringJsonUnmarshaller: Unmarshaller[ByteString, Json]

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 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 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

Inherited and Abstract implicits

implicit def jsonUnmarshaller: FromEntityUnmarshaller[Json]

HTTP entity => Json

HTTP entity => Json

Attributes

Returns

unmarshaller for Json

Inherited from:
BaseSupport
implicit def 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:
BaseSupport