- All Implemented Interfaces:
- org.reactivestreams.Publisher<ByteBuffer>, software.amazon.awssdk.core.async.AsyncRequestBody, software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer>, software.amazon.awssdk.http.ContentStreamProvider
public class AsyncStreamingRequestBody
extends Object
implements software.amazon.awssdk.core.async.AsyncRequestBody, software.amazon.awssdk.http.ContentStreamProvider
An AWS Request body that is capable of using InputStreams as the input. The contentLength is optional, however
if it is not specified, we try to find out the stream size automatically. If this fails, then the stream will
have to be read into memory to find out it's size for streaming. This is necessary as we have to send the leading
Content Length header before the actual chunked stream starts.