trait EntityEncoder[A] extends AnyRef
- Self Type
- EntityEncoder[A]
- 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): Task[Entity]
Convert the type
A
to an EntityEncoder.Entity in theTask
monad
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[A] to any2stringadd[EntityEncoder[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (EntityEncoder[A], B)
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to ArrowAssoc[EntityEncoder[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
- @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[B]
Make a new EntityEncoder using this type as a foundation
-
def
ensuring(cond: (EntityEncoder[A]) ⇒ Boolean, msg: ⇒ Any): EntityEncoder[A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to Ensuring[EntityEncoder[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (EntityEncoder[A]) ⇒ Boolean): EntityEncoder[A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to Ensuring[EntityEncoder[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): EntityEncoder[A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to Ensuring[EntityEncoder[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): EntityEncoder[A]
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to Ensuring[EntityEncoder[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[A] to StringFormat[EntityEncoder[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
- @throws( ... )
-
def
withContentType(tpe: Content-Type): EntityEncoder[A]
Generate a new EntityEncoder that will contain the
Content-Type
header -
def
→[B](y: B): (EntityEncoder[A], B)
- Implicit
- This member is added by an implicit conversion from EntityEncoder[A] to ArrowAssoc[EntityEncoder[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc