final case class Part[F[_]](headers: Headers, body: Stream[F, Byte]) extends Media[F] with Product with Serializable
- Source
- Part.scala
- Alphabetic
- By Inheritance
- Part
- Serializable
- Serializable
- Product
- Equals
- Media
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
as[A](implicit F: MonadThrow[F], decoder: EntityDecoder[F, A]): F[A]
Decode the Media to the specified type
- A
type of the result
- decoder
EntityDecoder used to decode the Media
- returns
the effect which will generate the A
- Definition Classes
- 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
- T
type of the result
- decoder
EntityDecoder used to decode the Media
- returns
the effect which will generate the
DecodeResult[T]
- Definition Classes
- Media
- val body: Stream[F, Byte]
-
final
def
bodyText(implicit RT: RaiseThrowable[F], defaultCharset: Charset = DefaultCharset): Stream[F, String]
- Definition Classes
- Media
-
final
def
charset: Option[Charset]
- Definition Classes
- Media
-
final
def
contentLength: Option[Long]
- Definition Classes
- Media
-
final
def
contentType: Option[Content-Type]
- Definition Classes
- Media
- def covary[F2[x] >: F[x]]: Part[F2]
- def filename: Option[String]
- val headers: Headers
- def name: Option[String]