Package io.micronaut.http.body
Interface InternalByteBody
- All Superinterfaces:
ByteBody
- All Known Implementing Classes:
AvailableByteArrayBody,InputStreamByteBody
Internal extensions of
ByteBody.- Since:
- 4.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.body.ByteBody
ByteBody.BodyDiscardedException, ByteBody.SplitBackpressureMode -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<? extends CloseableAvailableByteBody>buffer()Buffer the full body and return anCompletableFuturethat will complete when all bytes are available, or an error occurs.@NonNull io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody>Variant ofbuffer()that uses theExecutionFlowAPI for extra efficiency.static io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody>bufferFlow(ByteBody body) Methods inherited from interface io.micronaut.http.body.ByteBody
allowDiscard, expectedLength, split, split, toByteArrayPublisher, toByteBufferPublisher, toInputStream
-
Method Details
-
bufferFlow
@NonNull @NonNull io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow()Variant ofbuffer()that uses theExecutionFlowAPI for extra efficiency.- Returns:
- A flow that completes when all bytes are available
-
buffer
Description copied from interface:ByteBodyBuffer the full body and return anCompletableFuturethat will complete when all bytes are available, or an error occurs.This is a primary operation. After this operation, no other primary operation or
ByteBody.split()may be done. -
bufferFlow
static io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow(ByteBody body)
-