Part

org.http4s.multipart.Part
See thePart companion object
final case class Part[F[_]](headers: Headers, body: Stream[F, Byte]) extends Media[F]

Attributes

Companion
object
Source
Part.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Media[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def covary[F2[x]]: Part[F2]

Attributes

Definition Classes
Source
Part.scala

Attributes

Source
Part.scala

Attributes

Source
Part.scala

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 parameters

A

type of the result

Value parameters

decoder

EntityDecoder used to decode the Media

Attributes

Returns

the effect which will generate the A

Inherited from:
Media
Source
Media.scala
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 parameters

T

type of the result

Value parameters

decoder

EntityDecoder used to decode the Media

Attributes

Returns

the effect which will generate the DecodeResult[T]

Inherited from:
Media
Source
Media.scala
final def bodyText(implicit RT: RaiseThrowable[F], defaultCharset: Charset): Stream[F, String]

Attributes

Inherited from:
Media
Source
Media.scala
final def charset: Option[Charset]

Attributes

Inherited from:
Media
Source
Media.scala
final def contentLength: Option[Long]

Attributes

Inherited from:
Media
Source
Media.scala

Attributes

Inherited from:
Media
Source
Media.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product