ZioJsonSupport

com.github.pjfanning.pekkohttpziojson.ZioJsonSupport
See theZioJsonSupport companion trait

Attributes

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

Members list

Type members

Inherited types

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

Attributes

Inherited from:
ZioJsonSupport

Value members

Inherited methods

def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
ZioJsonSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
ZioJsonSupport

Implicits

Inherited implicits

final implicit def fromByteStringUnmarshaller[A](implicit jd: JsonDecoder[A], rt: Runtime[Any]): Unmarshaller[ByteString, A]

ByteString => A

ByteString => A

Type parameters

A

type to decode

Attributes

Inherited from:
ZioJsonSupport
final implicit def marshaller[A : JsonEncoder]: ToEntityMarshaller[A]

A => HTTP entity

A => HTTP entity

Type parameters

A

type to encode

Attributes

Returns

marshaller for any A value

Inherited from:
ZioJsonSupport
final implicit def safeUnmarshaller[A : JsonDecoder]: FromEntityUnmarshaller[Either[String, A]]

Attributes

Inherited from:
ZioJsonSupport
final implicit def sourceMarshaller[A](implicit writes: JsonEncoder[A], 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:
ZioJsonSupport
final implicit def sourceUnmarshaller[A : JsonDecoder, RT : Runtime](implicit evidence$4: JsonDecoder[A], evidence$5: Runtime[RT], support: JsonEntityStreamingSupport): FromEntityUnmarshaller[SourceOf[A]]

HTTP entity => Source[A, _]

HTTP entity => Source[A, _]

Type parameters

A

type to decode

Attributes

Returns

unmarshaller from Source[A, _]

Inherited from:
ZioJsonSupport
final implicit def unmarshaller[A : JsonDecoder, RT : Runtime]: FromEntityUnmarshaller[A]

HTTPEntity => A

HTTPEntity => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for A

Inherited from:
ZioJsonSupport