Part

final case class Part[F[_]](headers: Headers, body: Stream[F, Byte]) extends Media[F]
Companion
object
trait Serializable
trait Product
trait Equals
trait Media[F]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def covary[F2[x]]: Part[F2]
Definition Classes
def filename: Option[String]
def name: Option[String]

Inherited methods

final def as[A](implicit F: MonadThrow[F], decoder: EntityDecoder[F, A]): F[A]

Decode the Media to the specified type

Decode the Media to the specified type

If no valid Status has been described, allow Ok

Type Params
A

type of the result

Value Params
decoder

EntityDecoder used to decode the Media

Returns

the effect which will generate the A

Inherited from
Media
final def attemptAs[T](implicit decoder: EntityDecoder[F, T]): DecodeResult[F, T]

Decode the Media to the specified type

Decode the Media to the specified type

Type Params
T

type of the result

Value Params
decoder

EntityDecoder used to decode the Media

Returns

the effect which will generate the DecodeResult[T]

Inherited from
Media
final def bodyText(implicit RT: RaiseThrowable[F], defaultCharset: Charset): Stream[F, String]
Inherited from
Media
final def charset: Option[Charset]
Inherited from
Media
final def contentLength: Option[Long]
Inherited from
Media
final def contentType: Option[Content-Type]
Inherited from
Media
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product