Interface InternalByteBody

All Superinterfaces:
ByteBody
All Known Implementing Classes:
AvailableByteArrayBody, InputStreamByteBody

@Internal public interface InternalByteBody extends ByteBody
Internal extensions of ByteBody.
Since:
4.5.0
  • Method Details

    • bufferFlow

      @NonNull @NonNull io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow()
      Variant of buffer() that uses the ExecutionFlow API for extra efficiency.
      Returns:
      A flow that completes when all bytes are available
    • buffer

      default CompletableFuture<? extends CloseableAvailableByteBody> buffer()
      Description copied from interface: ByteBody
      Buffer the full body and return an CompletableFuture that 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.

      Specified by:
      buffer in interface ByteBody
      Returns:
      A future that completes when all bytes are available
    • bufferFlow

      static io.micronaut.core.execution.ExecutionFlow<? extends CloseableAvailableByteBody> bufferFlow(ByteBody body)