Support chunked Transfer-Encoding in SdkHttpFullRequest
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
Description
### Describe the feature
How can one send chunked transfer encoding requests with SdkHttpFullRequest today?
https://github.com/dblock/aws-sdk-sigv4-demo/issues/1
I'd like something like this:
```
byte payload[] = ... // something very large
SdkHttpFullRequest request = SdkHttpFullRequest.builder()
.method(SdkHttpMethod.POST)
.uri(URI.create(ENDPOINT + "/index_name/type_name/document_id"))
.appendHeader("Content-Type", "application/json")
.compressed() // this is #3286
.chunked() // this feature request
.contentStreamProvider(() -> new ByteArrayInputStream(payload))
.build();
```
### Use Case
Chunked requests are implemented in the OpenSearch REST client, and we're trying to move forward enabling https://github.com/opensearch-project/opensearch-java/issues/55
### Proposed Solution
_No response_
### Other Information
Related to #3286.
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS Java SDK version used
2.17.224
### JDK version used
11
### Operating System and version
MacOS
Contributor guide
Assessment
This issue has not been assessed yet.