object EntityEncoder extends EntityEncoderInstances
- Source
- EntityEncoder.scala
- Alphabetic
- By Inheritance
- EntityEncoder
- EntityEncoderInstances
- EntityEncoderInstances0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Entity(body: EntityBody, length: Option[Long] = None) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[A](implicit ev: EntityEncoder[A]): EntityEncoder[A]
summon an implicit EntityEncoder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
val
byteArrayEncoder: EntityEncoder[Array[Byte]]
- Definition Classes
- EntityEncoderInstances
-
implicit
val
byteVectorEncoder: EntityEncoder[ByteVector]
- Definition Classes
- EntityEncoderInstances
-
implicit
def
charArrayEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[Array[Char]]
- Definition Classes
- EntityEncoderInstances
-
def
chunkedEncoder[A](f: (A) ⇒ Channel[Task, Int, ByteVector], chunkSize: Int = DefaultChunkSize): EntityEncoder[A]
- Definition Classes
- EntityEncoderInstances
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
emptyEncoder[A]: EntityEncoder[A]
- Definition Classes
- EntityEncoderInstances0
-
def
encodeBy[A](hs: Header*)(f: (A) ⇒ Task[Entity]): EntityEncoder[A]
Create a new EntityEncoder
-
def
encodeBy[A](hs: Headers)(f: (A) ⇒ Task[Entity]): EntityEncoder[A]
Create a new EntityEncoder
-
implicit
val
entityEncoderContravariant: Contravariant[EntityEncoder]
- Definition Classes
- EntityEncoderInstances
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
val
fileEncoder: EntityEncoder[File]
- Definition Classes
- EntityEncoderInstances
-
implicit
val
filePathEncoder: EntityEncoder[Path]
- Definition Classes
- EntityEncoderInstances
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
def
futureEncoder[A](implicit W: EntityEncoder[A], ec: ExecutionContext): EntityEncoder[Future[A]]
- Definition Classes
- EntityEncoderInstances0
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
implicit
def
inputStreamEncoder[A <: InputStream]: EntityEncoder[A]
- Definition Classes
- EntityEncoderInstances
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
val
multipartEncoder: EntityEncoder[Multipart]
- Definition Classes
- EntityEncoderInstances
-
implicit
def
naturalTransformationEncoder[F[_], A](implicit N: ~>[F, Task], W: EntityEncoder[A]): EntityEncoder[F[A]]
- Definition Classes
- EntityEncoderInstances0
-
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()
-
implicit
def
process0Encoder[A](implicit W: EntityEncoder[A]): EntityEncoder[Process0[A]]
- Definition Classes
- EntityEncoderInstances0
-
implicit
def
readerEncoder[A <: Reader](implicit charset: Charset = DefaultCharset): EntityEncoder[A]
- Definition Classes
- EntityEncoderInstances
-
implicit
val
serverSentEventEncoder: EntityEncoder[EventStream]
- Definition Classes
- EntityEncoderInstances
-
def
showEncoder[A](implicit charset: Charset = DefaultCharset, show: Show[A]): EntityEncoder[A]
Encodes a value from its Show instance.
Encodes a value from its Show instance. Too broad to be implicit, too useful to not exist.
- Definition Classes
- EntityEncoderInstances0
-
def
simple[A](hs: Header*)(toChunk: (A) ⇒ ByteVector): EntityEncoder[A]
Create a new EntityEncoder
Create a new EntityEncoder
This constructor is a helper for types that can be serialized synchronously, for example a String.
-
implicit
def
sourceEncoder[A](implicit W: EntityEncoder[A]): EntityEncoder[Process[Task, A]]
A process encoder is intended for streaming, and does not calculate its bodies in advance.
A process encoder is intended for streaming, and does not calculate its bodies in advance. As such, it does not calculate the Content-Length in advance. This is for use with chunked transfer encoding.
- Definition Classes
- EntityEncoderInstances0
-
implicit
def
stringEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[String]
- Definition Classes
- EntityEncoderInstances
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
taskEncoder[A](implicit W: EntityEncoder[A]): EntityEncoder[Task[A]]
- Definition Classes
- EntityEncoderInstances
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
val
unitEncoder: EntityEncoder[Unit]
- Definition Classes
- EntityEncoderInstances
-
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( ... )
- object Entity extends Serializable
Deprecated Value Members
-
implicit
val
byteBufferEncoder: EntityEncoder[ByteBuffer]
- Definition Classes
- EntityEncoderInstances
- Annotations
- @deprecated
- Deprecated
(Since version 0.16) Removed due to unpredictable semantics. Wrap in a ByteVector first.
-
implicit
def
charBufferEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[CharBuffer]
- Definition Classes
- EntityEncoderInstances
- Annotations
- @deprecated
- Deprecated
(Since version 0.16) Removed due to unpredictable semantics. Convert to a String first.