Object/Trait

akka.http.scaladsl.model

HttpEntity

Related Docs: trait HttpEntity | package model

Permalink

object HttpEntity

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

Type Members

  1. final case class Chunk(data: ByteString, extension: String = "") extends ChunkStreamPart with Product with Serializable

    Permalink

    An intermediate entity chunk guaranteed to carry non-empty data.

  2. sealed abstract class ChunkStreamPart extends javadsl.model.HttpEntity.ChunkStreamPart

    Permalink

    An element of the HttpEntity data stream.

    An element of the HttpEntity data stream. Can be either a Chunk or a LastChunk.

  3. final case class Chunked(contentType: ContentType, chunks: Source[HttpEntity.ChunkStreamPart, Any]) extends javadsl.model.HttpEntity.Chunked with MessageEntity with Product with Serializable

    Permalink

    The model for the entity of a chunked HTTP message (with Transfer-Encoding: chunked).

  4. final case class CloseDelimited(contentType: ContentType, data: Source[ByteString, Any]) extends javadsl.model.HttpEntity.CloseDelimited with ResponseEntity with WithoutKnownLength with Product with Serializable

    Permalink

    The model for the entity of an HTTP response that is terminated by the server closing the connection.

    The model for the entity of an HTTP response that is terminated by the server closing the connection. The content-length of such responses is unknown at the time the response headers have been received. Note that this type of HttpEntity can only be used for HttpResponses.

  5. final case class Default(contentType: ContentType, contentLength: Long, data: Source[ByteString, Any]) extends javadsl.model.HttpEntity.Default with UniversalEntity with Product with Serializable

    Permalink

    The model for the entity of a "regular" unchunked HTTP message with a known non-zero length.

  6. final class DiscardedEntity extends javadsl.model.HttpMessage.DiscardedEntity

    Permalink

    Represents the currently being-drained HTTP Entity which triggers completion of the contained Future once the entity has been drained for the given HttpMessage completely.

  7. implicit final class HttpEntityScalaDSLSugar extends AnyVal

    Permalink

    Adds Scala DSL idiomatic methods to HttpEntity, e.g.

    Adds Scala DSL idiomatic methods to HttpEntity, e.g. versions of methods with an implicit Materializer.

  8. final case class IndefiniteLength(contentType: ContentType, data: Source[ByteString, Any]) extends javadsl.model.HttpEntity.IndefiniteLength with BodyPartEntity with WithoutKnownLength with Product with Serializable

    Permalink

    The model for the entity of a BodyPart with an indefinite length.

    The model for the entity of a BodyPart with an indefinite length. Note that this type of HttpEntity can only be used for BodyParts.

  9. case class LastChunk(extension: String = "", trailer: Seq[HttpHeader] = Nil) extends ChunkStreamPart with Product with Serializable

    Permalink

    The final chunk of a chunk stream.

    The final chunk of a chunk stream. If you don't need extensions or trailer headers you can save an allocation by directly using the LastChunk companion object.

  10. final case class Strict(contentType: ContentType, data: ByteString) extends javadsl.model.HttpEntity.Strict with UniversalEntity with Product with Serializable

    Permalink

    The model for the entity of a "regular" unchunked HTTP message with known, fixed data.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Chunk extends Serializable

    Permalink
  5. object ChunkStreamPart

    Permalink
  6. object Chunked extends Serializable

    Permalink
  7. val Empty: Strict

    Permalink
  8. object LastChunk extends LastChunk

    Permalink
  9. def apply(contentType: ContentType, data: Source[ByteString, Any]): Chunked

    Permalink
  10. def apply(contentType: ContentType, contentLength: Long, data: Source[ByteString, Any]): UniversalEntity

    Permalink
  11. def apply(contentType: ContentType, data: ByteString): Strict

    Permalink
  12. def apply(contentType: ContentType, bytes: Array[Byte]): Strict

    Permalink
  13. def apply(contentType: NonBinary, string: String): Strict

    Permalink
  14. implicit def apply(data: ByteString): Strict

    Permalink
  15. implicit def apply(bytes: Array[Byte]): Strict

    Permalink
  16. implicit def apply(string: String): Strict

    Permalink
  17. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def empty(contentType: ContentType): Strict

    Permalink
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def fromFile(contentType: ContentType, file: File, chunkSize: Int = 1): UniversalEntity

    Permalink

    Returns either the empty entity, if the given file is empty, or a HttpEntity.Default entity consisting of a stream of akka.util.ByteString instances each containing chunkSize bytes (except for the final ByteString, which simply contains the remaining bytes).

    Returns either the empty entity, if the given file is empty, or a HttpEntity.Default entity consisting of a stream of akka.util.ByteString instances each containing chunkSize bytes (except for the final ByteString, which simply contains the remaining bytes).

    If the given chunkSize is -1 the default chunk size is used.

  24. def fromPath(contentType: ContentType, file: Path, chunkSize: Int = 1): UniversalEntity

    Permalink

    Returns either the empty entity, if the given file is empty, or a HttpEntity.Default entity consisting of a stream of akka.util.ByteString instances each containing chunkSize bytes (except for the final ByteString, which simply contains the remaining bytes).

    Returns either the empty entity, if the given file is empty, or a HttpEntity.Default entity consisting of a stream of akka.util.ByteString instances each containing chunkSize bytes (except for the final ByteString, which simply contains the remaining bytes).

    If the given chunkSize is -1 the default chunk size is used.

  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def limitableByteSource[Mat](source: Source[ByteString, Mat]): Source[ByteString, Mat]

    Permalink

    Turns the given source into one that respects the withSizeLimit calls when used as a parameter to entity constructors.

  29. def limitableChunkSource[Mat](source: Source[ChunkStreamPart, Mat]): Source[ChunkStreamPart, Mat]

    Permalink

    Turns the given source into one that respects the withSizeLimit calls when used as a parameter to entity constructors.

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped