Multiple

zio.http.api.internal.BodyCodec$.Multiple
final case class Multiple[E](schema: Schema[E])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type Element = E

The element type, described by the schema. This could be the type of the whole request, if it's an RPC-style request with a single, relatively small body, or it could be the type of a single element in a stream.

The element type, described by the schema. This could be the type of the whole request, if it's an RPC-style request with a single, relatively small body, or it could be the type of a single element in a stream.

Attributes

Value members

Concrete methods

def decodeFromBody(body: Body, codec: BinaryCodec[E]): IO[Throwable, ZStream[Any, Throwable, E]]

Attempts to decode the A from a body using the given codec.

Attempts to decode the A from a body using the given codec.

Attributes

def encodeToBody(value: ZStream[Any, Throwable, E], codec: BinaryCodec[E]): Body

Encodes the A to a body in the given codec.

Encodes the A to a body in the given codec.

Attributes

Inherited methods

final def erase: BodyCodec[Any]

Erases the type for easier use in the internal implementation.

Erases the type for easier use in the internal implementation.

Attributes

Inherited from:
BodyCodec (hidden)

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product