Media

org.http4s.Media
See theMedia companion object
trait Media[+F[_]]

Attributes

Companion:
object
Source:
Media.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Message[F]
class Request[F]
class Response[F]
class Part[F]

Members list

Concise view

Value members

Abstract methods

def covary[F2[x]]: Media[F2]

Attributes

Source:
Media.scala
def entity: Entity[F]

Attributes

Source:
Media.scala

Attributes

Source:
Media.scala

Concrete methods

def as[A](implicit F: MonadThrow[F], decoder: EntityDecoder[F, A]): F[A]
Implicitly added by InvariantOps

Decode the Media to the specified type

Decode the Media to the specified type

If no valid Status has been described, allow Ok

Attributes

A

type of the result

decoder

EntityDecoder used to decode the Media

Returns:

the effect which will generate the A

Source:
Media.scala
def attemptAs[T](implicit decoder: EntityDecoder[F, T]): DecodeResult[F, T]
Implicitly added by InvariantOps

Decode the Media to the specified type

Decode the Media to the specified type

Attributes

T

type of the result

decoder

EntityDecoder used to decode the Media

Returns:

the effect which will generate the DecodeResult[T]

Source:
Media.scala
final def body: EntityBody[F]

Attributes

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

Attributes

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

Attributes

Source:
Media.scala

Attributes

Source:
Media.scala

Attributes

Source:
Media.scala