HttpContentCodec

zio.http.codec.HttpContentCodec
See theHttpContentCodec companion object
final case class HttpContentCodec[A](choices: ListMap[MediaType, BinaryCodec[A]], schema: Schema[A])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

A right biased merge of two HttpContentCodecs.

A right biased merge of two HttpContentCodecs.

Attributes

def decodeRequest(request: Request): Task[A]
def decodeResponse(response: Response): Task[A]
def encode(value: A): Either[String, Body]
def lookup(mediaType: MediaType): Option[BinaryCodec[A]]
def only(mediaType: MediaType): HttpContentCodec[A]
def only(mediaType: Option[MediaType]): HttpContentCodec[A]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields