DelegatingCodecAPI

abstract class DelegatingCodecAPI extends CodecAPI
trait CodecAPI
class Object
trait Matchable
class Any

Type members

Types

type Codec[A] = Codec[A]

Value members

Concrete methods

def decodeFromByteArrayPartial[A](codec: Codec[A], bytes: Array[Byte]): Either[PayloadError, BodyPartial[A]]
def decodeFromByteBufferPartial[A](codec: Codec[A], bytes: ByteBuffer): Either[PayloadError, BodyPartial[A]]
def mediaType[A](codec: Codec[A]): HttpMediaType
def writeToArray[A](codec: Codec[A], value: A): Array[Byte]

Inherited methods

def compileCodec[A](schema: Schema[A]): Codec[A]

Turns a Schema into this API's preferred representation.

Turns a Schema into this API's preferred representation.

Value parameters:
schema

the value's schema

Returns:

the codec associated to the A value.

Inherited from:
CodecAPI
def decodeFromByteArray[A](codec: Codec[A], bytes: Array[Byte]): Either[PayloadError, A]
Inherited from:
CodecAPI
def decodeFromByteBuffer[A](codec: Codec[A], bytes: ByteBuffer): Either[PayloadError, A]
Inherited from:
CodecAPI