Uses of Interface
io.helidon.http.DataChunk
Package
Description
HTTP APIs and implementations usable by both server and client side of the HTTP story.
-
Uses of DataChunk in io.helidon.http
Modifier and TypeMethodDescriptionstatic DataChunk
DataChunk.create
(boolean flush, boolean readOnly, Runnable releaseCallback, ByteBuffer... byteBuffers) Creates a reusable byteBuffers chunk.static DataChunk
DataChunk.create
(boolean flush, boolean readOnly, ByteBuffer... byteBuffers) Creates a reusable data chunk.static DataChunk
DataChunk.create
(boolean flush, Runnable releaseCallback, ByteBuffer... byteBuffers) Creates a reusable byteBuffers chunk.static DataChunk
DataChunk.create
(boolean flush, ByteBuffer... byteBuffers) Creates a reusable data chunk.static DataChunk
DataChunk.create
(byte[] bytes) Creates a simple byte array backed data chunk.static DataChunk
DataChunk.create
(ByteBuffer byteBuffer) Creates a simpleByteBuffer
backed data chunk.static DataChunk
DataChunk.create
(ByteBuffer... byteBuffers) Creates a data chunk backed by one or more ByteBuffer.default DataChunk
DataChunk.duplicate()
Makes a copy of this data chunk including its underlyingByteBuffer
.Modifier and TypeMethodDescriptiondefault Optional
<CompletableFuture<DataChunk>> DataChunk.writeFuture()
Returns a write future associated with this chunk.Modifier and TypeMethodDescriptiondefault void
DataChunk.writeFuture
(CompletableFuture<DataChunk> writeFuture) Set a write future that will complete when data chunk has been written to a connection.