trait EntityEncoder[F[_], A] extends AnyRef
- Self Type
- EntityEncoder[F, A]
- Annotations
- @implicitNotFound( ... )
- Source
- EntityEncoder.scala
- Alphabetic
- By Inheritance
- EntityEncoder
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
headers: Headers
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.
-
abstract
def
toEntity(a: A): Entity[F]
Convert the type
A
to an EntityEncoder.Entity in the effect typeF
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to any2stringadd[EntityEncoder[F, A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (EntityEncoder[F, A], B)
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to ArrowAssoc[EntityEncoder[F, A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
charset: Option[Charset]
Get the Charset of the body encoded by this EntityEncoder, if defined the headers
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
contentType: Option[Content-Type]
Get the org.http4s.headers.Content-Type of the body encoded by this EntityEncoder, if defined the headers
-
def
contramap[B](f: (B) ⇒ A): EntityEncoder[F, B]
Make a new EntityEncoder using this type as a foundation
-
def
ensuring(cond: (EntityEncoder[F, A]) ⇒ Boolean, msg: ⇒ Any): EntityEncoder[F, A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to Ensuring[EntityEncoder[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityEncoder[F, A]) ⇒ Boolean): EntityEncoder[F, A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to Ensuring[EntityEncoder[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityEncoder[F, A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to Ensuring[EntityEncoder[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityEncoder[F, A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to Ensuring[EntityEncoder[F, A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to StringFormat[EntityEncoder[F, A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withContentType(tpe: Content-Type): EntityEncoder[F, A]
Generate a new EntityEncoder that will contain the
Content-Type
header -
def
→[B](y: B): (EntityEncoder[F, A], B)
- Implicit
- This member is added by an implicit conversion from EntityEncoder[F, A] to ArrowAssoc[EntityEncoder[F, A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc