The ContentType
associated with this entity.
The ContentType
associated with this entity.
A stream of the data of this entity.
A stream of the data of this entity.
Determines whether this entity is known to be empty.
Determines whether this entity is known to be empty.
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.
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.
Java API
Java API
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.
(responseEntity: StringAdd).self
(responseEntity: StringFormat).self
(responseEntity: ArrowAssoc[ResponseEntity]).x
(Since version 2.10.0) Use leftOfArrow
instead
(responseEntity: Ensuring[ResponseEntity]).x
(Since version 2.10.0) Use resultOfEnsuring
instead