Package io.micronaut.http.body
Interface InternalByteBody
- All Superinterfaces:
ByteBody
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 TypeMethodDescription@NonNull io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody>Variant ofByteBody.buffer()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, buffer, expectedLength, split, split, toByteArrayPublisher, toByteBufferPublisher, toInputStream
-
Method Details
-
bufferFlow
@NonNull @NonNull io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow()Variant ofByteBody.buffer()that uses theExecutionFlowAPI for extra efficiency.- Returns:
- A flow that completes when all bytes are available
-
bufferFlow
static io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow(ByteBody body)
-