PartCodec

sttp.tapir.PartCodec
See thePartCodec companion class
object PartCodec

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
PartCodec.type

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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.

Attributes