object PartCodec
- Companion:
- class
Type members
Classlikes
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.