MultipartCodec

sttp.tapir.MultipartCodec
See theMultipartCodec companion object
case class MultipartCodec[T](rawBodyType: MultipartBody, codec: Codec[Seq[RawPart], T, MultipartFormData])

Information needed to handle a multipart body. Individual parts are decoded as described by rawBodyType, which contains codecs for each part, as well as an optional default codec. The sequence of decoded parts can be further decoded into a high-level T type using codec.

Attributes

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

Members list

Value members

Concrete methods

def map[U](mapping: Mapping[T, U]): MultipartCodec[U]
def map[U](f: T => U)(g: U => T): MultipartCodec[U]
def mapDecode[U](f: T => DecodeResult[U])(g: U => T): MultipartCodec[U]
def schema(s: Schema[T]): MultipartCodec[T]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product