Class

akka.http.scaladsl.model.HttpEntity

CloseDelimited

Related Doc: package HttpEntity

Permalink

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

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.

Source
HttpEntity.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, WithoutKnownLength, ResponseEntity, HttpEntity, javadsl.model.HttpEntity.CloseDelimited, javadsl.model.ResponseEntity, javadsl.model.HttpEntity, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CloseDelimited
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WithoutKnownLength
  7. ResponseEntity
  8. HttpEntity
  9. CloseDelimited
  10. ResponseEntity
  11. HttpEntity
  12. AnyRef
  13. Any
Implicitly
  1. by HttpEntityScalaDSLSugar
  2. by fromJava
  3. by HttpEntityScalaDSLSugar
  4. by any2stringadd
  5. by StringFormat
  6. by Ensuring
  7. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CloseDelimited(contentType: ContentType, data: Source[ByteString, Any])

    Permalink

Type Members

  1. type ChunkStreamPart = javadsl.model.HttpEntity.ChunkStreamPart

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  2. type Chunked = javadsl.model.HttpEntity.Chunked

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  3. type CloseDelimited = javadsl.model.HttpEntity.CloseDelimited

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  4. type Default = javadsl.model.HttpEntity.Default

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  5. type DiscardedEntity = javadsl.model.HttpEntity.DiscardedEntity

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  6. type IndefiniteLength = javadsl.model.HttpEntity.IndefiniteLength

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity
  7. type Self = HttpEntity.CloseDelimited

    Permalink
    Definition Classes
    CloseDelimited → WithoutKnownLength
  8. type Strict = javadsl.model.HttpEntity.Strict

    Permalink
    Attributes
    protected
    Definition Classes
    HttpEntity

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to any2stringadd[HttpEntity.CloseDelimited] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpEntity.CloseDelimited, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ArrowAssoc[HttpEntity.CloseDelimited] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contentLengthOption: Option[Long]

    Permalink

    Some(content length) if a length is defined for this entity, None otherwise.

    Some(content length) if a length is defined for this entity, None otherwise. A length is only defined for Strict and Default entity types.

    In many cases it's dangerous to rely on the (non-)existence of a content-length. HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding which can result in the entity being delivered as another type as expected.

    Definition Classes
    WithoutKnownLength → HttpEntity
  9. val contentType: ContentType

    Permalink

    The ContentType associated with this entity.

    The ContentType associated with this entity.

    Definition Classes
    CloseDelimited → WithoutKnownLength → HttpEntity
  10. val data: Source[ByteString, Any]

    Permalink
    Definition Classes
    CloseDelimited → WithoutKnownLength
  11. def dataBytes: Source[ByteString, Any]

    Permalink

    A stream of the data of this entity.

    A stream of the data of this entity.

    Definition Classes
    WithoutKnownLength → HttpEntity
  12. def discardBytes(mat: Materializer): HttpMessage.DiscardedEntity

    Permalink

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.

    Warning: It is not allowed to discard and/or consume the entity.dataBytes more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.

    In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.

    Definition Classes
    HttpEntityHttpEntity
  13. def ensuring(cond: (HttpEntity.CloseDelimited) ⇒ Boolean, msg: ⇒ Any): HttpEntity.CloseDelimited

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to Ensuring[HttpEntity.CloseDelimited] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (HttpEntity.CloseDelimited) ⇒ Boolean): HttpEntity.CloseDelimited

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to Ensuring[HttpEntity.CloseDelimited] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): HttpEntity.CloseDelimited

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to Ensuring[HttpEntity.CloseDelimited] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): HttpEntity.CloseDelimited

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to Ensuring[HttpEntity.CloseDelimited] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to StringFormat[HttpEntity.CloseDelimited] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getContentLengthOption(): OptionalLong

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  22. def getContentType(): javadsl.model.ContentType

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  23. def getDataBytes(): Source[ByteString, AnyRef]

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  24. def isChunked(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  25. def isCloseDelimited(): Boolean

    Permalink
    Definition Classes
    CloseDelimitedHttpEntityHttpEntity
  26. def isDefault(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  27. def isIndefiniteLength(): Boolean

    Permalink
    Definition Classes
    HttpEntityHttpEntity
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isKnownEmpty(): Boolean

    Permalink

    Determines whether this entity is known to be empty.

    Determines whether this entity is known to be empty.

    Definition Classes
    WithoutKnownLength → HttpEntityHttpEntity
  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. def productPrefix: String

    Permalink
    Definition Classes
    CloseDelimited → Product
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]

    Permalink

    Java API

    Java API

    Definition Classes
    HttpEntityHttpEntity
  36. def toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[HttpEntity.Strict]

    Permalink

    Collects all possible parts and returns a potentially future Strict entity for easier processing.

    Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.

    Definition Classes
    HttpEntity
  37. def toString(): String

    Permalink
    Definition Classes
    CloseDelimited → AnyRef → Any
  38. def transformDataBytes(transformer: Flow[ByteString, ByteString, Any]): Self

    Permalink

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For a Chunked entity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before the LastChunk if transformer.onTermination returns additional data).

    This method may only throw an exception if the transformer function throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.

    Definition Classes
    WithoutKnownLength → HttpEntity
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withContentType(contentType: ContentType): HttpEntity.CloseDelimited

    Permalink

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Definition Classes
    CloseDelimitedResponseEntityHttpEntity
  43. def withData(data: Source[ByteString, Any]): HttpEntity.CloseDelimited

    Permalink
    Definition Classes
    CloseDelimited → WithoutKnownLength
  44. def withSizeLimit(maxBytes: Long): Self

    Permalink

    Apply the given size limit to this entity by returning a new entity instance which automatically verifies that the data stream encapsulated by this instance produces at most maxBytes data bytes.

    Apply the given size limit to this entity by returning a new entity instance which automatically verifies that the data stream encapsulated by this instance produces at most maxBytes data bytes. In case this verification fails the respective stream will be terminated with an EntityStreamException either directly at materialization time (if the Content-Length is known) or whenever more data bytes than allowed have been read.

    When called on Strict entities the method will return the entity itself if the length is within the bound, otherwise a Default entity with a single element data stream. This allows for potential refinement of the entity size limit at a later point (before materialization of the data stream).

    By default all message entities produced by the HTTP layer automatically carry the limit that is defined in the application's max-content-length config setting. If the entity is transformed in a way that changes the Content-Length and then another limit is applied then this new limit will be evaluated against the new Content-Length. If the entity is transformed in a way that changes the Content-Length and no new limit is applied then the previous limit will be applied against the previous Content-Length.

    Note that the size limit applied via this method will only have any effect if the Source instance contained in this entity has been appropriately modified via the HttpEntity.limitable method. For all entities created by the HTTP layer itself this is always the case, but if you create entities yourself and would like them to properly respect limits defined via this method you need to make sure to apply HttpEntity.limitable yourself.

    Definition Classes
    WithoutKnownLength → HttpEntityHttpEntity
  45. def withoutSizeLimit(): Self

    Permalink

    Lift the size limit from this entity by returning a new entity instance which skips the size verification.

    Lift the size limit from this entity by returning a new entity instance which skips the size verification.

    By default all message entities produced by the HTTP layer automatically carry the limit that is defined in the application's max-content-length config setting. It is recommended to always keep an upper limit on accepted entities to avoid potential attackers flooding you with too large requests/responses, so use this method with caution.

    Note that the size limit applied via this method will only have any effect if the Source instance contained in this entity has been appropriately modified via the HttpEntity.limitable method. For all entities created by the HTTP layer itself this is always the case, but if you create entities yourself and would like them to properly respect limits defined via this method you need to make sure to apply HttpEntity.limitable yourself.

    See withSizeLimit for more details.

    Definition Classes
    WithoutKnownLength → HttpEntityHttpEntity
  46. def [B](y: B): (HttpEntity.CloseDelimited, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ArrowAssoc[HttpEntity.CloseDelimited] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def contentLengthOption: Option[Long]

    Permalink

    Some(content length) if a length is defined for this entity, None otherwise.

    Some(content length) if a length is defined for this entity, None otherwise. A length is only defined for Strict and Default entity types.

    In many cases it's dangerous to rely on the (non-)existence of a content-length. HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding which can result in the entity being delivered as another type as expected.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).contentLengthOption
    Definition Classes
    HttpEntity
  2. def contentType: ContentType

    Permalink

    The ContentType associated with this entity.

    The ContentType associated with this entity.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).contentType
    Definition Classes
    HttpEntity
  3. def dataBytes: Source[ByteString, Any]

    Permalink

    A stream of the data of this entity.

    A stream of the data of this entity.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).dataBytes
    Definition Classes
    HttpEntity
  4. def discardBytes()(implicit mat: Materializer): HttpMessage.DiscardedEntity

    Permalink

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.

    Warning: It is not allowed to discard and/or consume the entity.dataBytes more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.

    In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: HttpEntityScalaDSLSugar).discardBytes()(mat)
    Definition Classes
    HttpEntityScalaDSLSugar
  5. def discardBytes(mat: Materializer): HttpMessage.DiscardedEntity

    Permalink

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.

    Warning: It is not allowed to discard and/or consume the entity.dataBytes more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.

    In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).discardBytes(mat)
    Definition Classes
    HttpEntityHttpEntity
  6. def discardBytes()(implicit mat: Materializer): HttpMessage.DiscardedEntity

    Permalink

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Discards the entities data bytes by running the dataBytes Source contained in this entity.

    Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.

    Warning: It is not allowed to discard and/or consume the entity.dataBytes more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.

    In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: HttpEntityScalaDSLSugar).discardBytes()(mat)
    Definition Classes
    HttpEntityScalaDSLSugar
  7. def getContentLengthOption(): OptionalLong

    Permalink

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).getContentLengthOption()
    Definition Classes
    HttpEntityHttpEntity
  8. def getContentType(): javadsl.model.ContentType

    Permalink

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).getContentType()
    Definition Classes
    HttpEntityHttpEntity
  9. def getDataBytes(): Source[ByteString, AnyRef]

    Permalink

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).getDataBytes()
    Definition Classes
    HttpEntityHttpEntity
  10. val httpEntity: HttpEntity

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (closeDelimited: HttpEntityScalaDSLSugar).httpEntity
    Definition Classes
    HttpEntityScalaDSLSugar
  11. val httpEntity: HttpEntity

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (closeDelimited: HttpEntityScalaDSLSugar).httpEntity
    Definition Classes
    HttpEntityScalaDSLSugar
  12. def isChunked(): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).isChunked()
    Definition Classes
    HttpEntityHttpEntity
  13. def isCloseDelimited(): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).isCloseDelimited()
    Definition Classes
    HttpEntityHttpEntity
  14. def isDefault(): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).isDefault()
    Definition Classes
    HttpEntityHttpEntity
  15. def isIndefiniteLength(): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).isIndefiniteLength()
    Definition Classes
    HttpEntityHttpEntity
  16. def isKnownEmpty(): Boolean

    Permalink

    Determines whether this entity is known to be empty.

    Determines whether this entity is known to be empty.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).isKnownEmpty()
    Definition Classes
    HttpEntityHttpEntity
  17. def toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]

    Permalink

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).toStrict(timeoutMillis, materializer)
    Definition Classes
    HttpEntityHttpEntity
  18. def toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[HttpEntity.Strict]

    Permalink

    Collects all possible parts and returns a potentially future Strict entity for easier processing.

    Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).toStrict(timeout)(fm)
    Definition Classes
    HttpEntity
  19. def transformDataBytes(transformer: Flow[ByteString, ByteString, Any]): ResponseEntity

    Permalink

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.

    Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For a Chunked entity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before the LastChunk if transformer.onTermination returns additional data).

    This method may only throw an exception if the transformer function throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).transformDataBytes(transformer)
    Definition Classes
    ResponseEntityHttpEntity
  20. def withContentType(contentType: ContentType): ResponseEntity

    Permalink

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Creates a copy of this HttpEntity with the contentType overridden with the given one.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).withContentType(contentType)
    Definition Classes
    ResponseEntityHttpEntity
  21. def withSizeLimit(maxBytes: Long): ResponseEntity

    Permalink

    See HttpEntity#withSizeLimit.

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).withSizeLimit(maxBytes)
    Definition Classes
    ResponseEntityHttpEntityHttpEntity
  22. def withoutSizeLimit(): ResponseEntity

    Permalink

    See HttpEntity#withoutSizeLimit

    Implicit information
    This member is added by an implicit conversion from CloseDelimited to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (closeDelimited: ResponseEntity).withoutSizeLimit()
    Definition Classes
    ResponseEntityHttpEntityHttpEntity

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithoutKnownLength

Inherited from ResponseEntity

Inherited from HttpEntity

Inherited from javadsl.model.HttpEntity.CloseDelimited

Inherited from javadsl.model.HttpEntity

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion HttpEntityScalaDSLSugar from CloseDelimited to HttpEntityScalaDSLSugar

Inherited by implicit conversion fromJava from CloseDelimited to ResponseEntity

Inherited by implicit conversion HttpEntityScalaDSLSugar from CloseDelimited to HttpEntityScalaDSLSugar

Inherited by implicit conversion any2stringadd from CloseDelimited to any2stringadd[HttpEntity.CloseDelimited]

Inherited by implicit conversion StringFormat from CloseDelimited to StringFormat[HttpEntity.CloseDelimited]

Inherited by implicit conversion Ensuring from CloseDelimited to Ensuring[HttpEntity.CloseDelimited]

Inherited by implicit conversion ArrowAssoc from CloseDelimited to ArrowAssoc[HttpEntity.CloseDelimited]

Ungrouped