object EntityEncoder extends EntityEncoderInstances
- Source
- EntityEncoder.scala
- Alphabetic
- By Inheritance
- EntityEncoder
- EntityEncoderInstances
- EntityEncoderInstances0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
def
charArrayEncoder(implicit charset: Charset = DefaultCharset): EntityEncoder[Array[Char]]
- Definition Classes
- EntityEncoderInstances
-
implicit
val
chunkEncoder: EntityEncoder[Chunk[Byte]]
- 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
def
entityBodyEncoder: EntityEncoder[EntityBody]
Encodes an entity body.
Encodes an entity body. Chunking of the stream is preserved. A
Transfer-Encoding: chunked
header is set, as we cannot know the content length without running the stream.- Definition Classes
- EntityEncoderInstances
-
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[Eval[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
pureStreamEncoder[A](implicit W: EntityEncoder[A]): EntityEncoder[Stream[Nothing, A]]
- Definition Classes
- EntityEncoderInstances0
-
implicit
def
readerEncoder[A <: Reader](implicit charset: Charset = DefaultCharset): EntityEncoder[Task[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) ⇒ Chunk[Byte]): 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[Stream[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( ... )