Packages

object EntityEncoder

Source
EntityEncoder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EntityEncoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_], A](implicit ev: EntityEncoder[F, A]): EntityEncoder[F, A]

    summon an implicit EntityEncoder

  2. implicit def byteArrayEncoder[F[_]]: EntityEncoder[F, Array[Byte]]
  3. implicit def charArrayEncoder[F[_]](implicit charset: Charset = DefaultCharset): EntityEncoder[F, Array[Char]]
  4. implicit def chunkEncoder[F[_]]: EntityEncoder[F, Chunk[Byte]]
  5. def emptyEncoder[F[_], A]: EntityEncoder[F, A]
  6. def encodeBy[F[_], A](hs: Header*)(f: (A) ⇒ Entity[F]): EntityEncoder[F, A]

    Create a new EntityEncoder

  7. def encodeBy[F[_], A](hs: Headers)(f: (A) ⇒ Entity[F]): EntityEncoder[F, A]

    Create a new EntityEncoder

  8. implicit def entityBodyEncoder[F[_]]: EntityEncoder[F, EntityBody[F]]

    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.

  9. implicit def entityEncoderContravariant[F[_]]: Contravariant[[β$0$]EntityEncoder[F, β$0$]]
  10. def fileEncoder[F[_]](blockingExecutionContext: ExecutionContext)(implicit F: Effect[F], cs: ContextShift[F]): EntityEncoder[F, File]
  11. def filePathEncoder[F[_]](blockingExecutionContext: ExecutionContext)(implicit arg0: Sync[F], arg1: ContextShift[F]): EntityEncoder[F, Path]
  12. def inputStreamEncoder[F[_], IS <: InputStream](blockingExecutionContext: ExecutionContext)(implicit arg0: Sync[F], arg1: ContextShift[F]): EntityEncoder[F, F[IS]]
  13. implicit def multipartEncoder[F[_]]: EntityEncoder[F, Multipart[F]]
  14. implicit def readerEncoder[F[_], R <: Reader](blockingExecutionContext: ExecutionContext)(implicit F: Sync[F], cs: ContextShift[F], charset: Charset = DefaultCharset): EntityEncoder[F, F[R]]
  15. implicit def serverSentEventEncoder[F[_]]: EntityEncoder[F, EventStream[F]]
  16. def showEncoder[F[_], A](implicit charset: Charset = DefaultCharset, show: Show[A]): EntityEncoder[F, 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.

  17. def simple[F[_], A](hs: Header*)(toChunk: (A) ⇒ Chunk[Byte]): EntityEncoder[F, 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.

  18. implicit def streamEncoder[F[_], A](implicit W: EntityEncoder[F, A]): EntityEncoder[F, Stream[F, A]]

    A stream encoder is intended for streaming, and does not calculate its bodies in advance.

    A stream 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.

  19. implicit def stringEncoder[F[_]](implicit charset: Charset = DefaultCharset): EntityEncoder[F, String]
  20. implicit def unitEncoder[F[_]]: EntityEncoder[F, Unit]