EntityEncoder

@implicitNotFound("Cannot convert from ${A} to an Entity, because no EntityEncoder[${F}, ${A}] instance could be found.")
trait EntityEncoder[F[_], A]
Companion:
object
Source:
EntityEncoder.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

Implicitly added by streamEncoder

Headers that may be added to a Message

Headers that may be added to a Message

Examples of such headers would be Content-Type. NOTE: The Content-Length header will be generated from the resulting Entity and thus should not be added.

Source:
EntityEncoder.scala

Headers that may be added to a Message

Headers that may be added to a Message

Examples of such headers would be Content-Type. NOTE: The Content-Length header will be generated from the resulting Entity and thus should not be added.

Source:
EntityEncoder.scala
def toEntity(a: A): Entity[F]
Implicitly added by streamEncoder

Convert the type A to an Entity in the effect type F

Convert the type A to an Entity in the effect type F

Source:
EntityEncoder.scala
def toEntity(a: A): Entity[F]

Convert the type A to an Entity in the effect type F

Convert the type A to an Entity in the effect type F

Source:
EntityEncoder.scala

Concrete methods

Implicitly added by streamEncoder

Get the Charset of the body encoded by this EntityEncoder, if defined the headers

Get the Charset of the body encoded by this EntityEncoder, if defined the headers

Source:
EntityEncoder.scala

Get the Charset of the body encoded by this EntityEncoder, if defined the headers

Get the Charset of the body encoded by this EntityEncoder, if defined the headers

Source:
EntityEncoder.scala
Implicitly added by streamEncoder

Get the org.http4s.headers.Content-Type of the body encoded by this EntityEncoder, if defined the headers

Get the org.http4s.headers.Content-Type of the body encoded by this EntityEncoder, if defined the headers

Source:
EntityEncoder.scala

Get the org.http4s.headers.Content-Type of the body encoded by this EntityEncoder, if defined the headers

Get the org.http4s.headers.Content-Type of the body encoded by this EntityEncoder, if defined the headers

Source:
EntityEncoder.scala
def contramap[B](f: B => A): EntityEncoder[F, B]
Implicitly added by streamEncoder

Make a new EntityEncoder using this type as a foundation

Make a new EntityEncoder using this type as a foundation

Source:
EntityEncoder.scala
def contramap[B](f: B => A): EntityEncoder[F, B]

Make a new EntityEncoder using this type as a foundation

Make a new EntityEncoder using this type as a foundation

Source:
EntityEncoder.scala
Implicitly added by streamEncoder

Generate a new EntityEncoder that will contain the Content-Type header

Generate a new EntityEncoder that will contain the Content-Type header

Source:
EntityEncoder.scala

Generate a new EntityEncoder that will contain the Content-Type header

Generate a new EntityEncoder that will contain the Content-Type header

Source:
EntityEncoder.scala