An intermediate entity chunk guaranteed to carry non-empty data.
An element of the HttpEntity data stream.
An element of the HttpEntity data stream.
Can be either a Chunk
or a LastChunk
.
The model for the entity of a chunked HTTP message (with Transfer-Encoding: chunked
).
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.
The model for the entity of a "regular" unchunked HTTP message with a known non-zero length.
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.
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.
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.
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.
The model for the entity of a "regular" unchunked HTTP message with known, fixed data.
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.
Turns the given source into one that respects the withSizeLimit
calls when used as a parameter
to entity constructors.
Turns the given source into one that respects the withSizeLimit
calls when used as a parameter
to entity constructors.
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.
(Since version 2.4.5) Use fromPath
instead