PartCodec

object PartCodec
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

Create a part codec which reads the raw part as R and later decodes to type T. Usage examples:

Create a part codec which reads the raw part as R and later decodes to type T. Usage examples:

PartCodec(RawBodyType.StringBody(StandardCharsets.UTF_8))[String]
PartCodec(RawBodyType.StringBody(StandardCharsets.UTF_8))[Int]
PartCodec(RawBodyType.ByteArrayBody)[Array[Byte]]

A codec between the a Part containing the raw data and the target type T must be available in the implicit scope.