ErrorAccumulatingCirceSupport

com.github.pjfanning.pekkohttpcirce.ErrorAccumulatingCirceSupport
See theErrorAccumulatingCirceSupport companion trait

Automatic to and from JSON marshalling/unmarshalling using an in-scope circe protocol. The unmarshaller accumulates all errors in the exception Errors.

To use automatic codec derivation, user needs to import io.circe.generic.auto._.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

final case class DecodingFailures(failures: NonEmptyList[DecodingFailure]) extends Exception

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Inherited types

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

Attributes

Inherited from:
BaseCirceSupport

Value members

Inherited methods

def byteStringJsonUnmarshaller: Unmarshaller[ByteString, Json]

Attributes

Inherited from:
BaseCirceSupport
def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
BaseCirceSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
BaseCirceSupport

Implicits

Inherited implicits

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

Attributes

Definition Classes
Inherited from:
ErrorAccumulatingUnmarshaller
final implicit def jsonMarshaller(implicit printer: Printer): ToEntityMarshaller[Json]

Json => HTTP entity

Json => HTTP entity

Attributes

Returns

marshaller for JSON value

Inherited from:
BaseCirceSupport
final implicit 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:
BaseCirceSupport
final implicit 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[ValidatedNel[Error, A]]

Attributes

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

Attributes

Definition Classes
Inherited from:
ErrorAccumulatingUnmarshaller