Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Buffer if custom content provider stream #5829

Closed
wants to merge 2 commits into from

Conversation

dagnir
Copy link
Contributor

@dagnir dagnir commented Jan 27, 2025

Motivation and Context

This updates the RequestBody.fromContentProvider() methods such that the
underlying implementation will buffer the contents of the stream in memory
during the first pass through the stream.

Modifications

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@dagnir dagnir force-pushed the dongie/buffer-content-provider branch from f26c702 to c02811d Compare January 28, 2025 00:23
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch 3 times, most recently from f884136 to adc7934 Compare January 28, 2025 04:05
@dagnir dagnir changed the title Buffer if content provider provided w/o cotent len Buffer if content provider provided w/o len Jan 28, 2025
@dagnir dagnir marked this pull request as ready for review January 28, 2025 04:33
@dagnir dagnir requested a review from a team as a code owner January 28, 2025 04:33
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch from adc7934 to 60cf4c4 Compare January 28, 2025 05:12
zoewangg
zoewangg previously approved these changes Jan 28, 2025
@dagnir dagnir added this pull request to the merge queue Jan 28, 2025
@dagnir dagnir removed this pull request from the merge queue due to a manual request Jan 28, 2025
@dagnir dagnir added this pull request to the merge queue Jan 28, 2025
@dagnir dagnir removed this pull request from the merge queue due to a manual request Jan 28, 2025
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch from 60cf4c4 to 097b1bc Compare January 28, 2025 18:02
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch from 097b1bc to cd9e983 Compare January 28, 2025 18:48
millems
millems previously approved these changes Jan 28, 2025
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch 6 times, most recently from e098b11 to 55b8c4a Compare January 29, 2025 00:37
@dagnir dagnir changed the title Buffer if content provider provided w/o len Buffer if custom content provider stream Jan 29, 2025
@dagnir dagnir enabled auto-merge January 29, 2025 00:40
@dagnir dagnir requested review from zoewangg and millems January 29, 2025 04:16
@dagnir dagnir disabled auto-merge January 29, 2025 04:21
@dagnir dagnir changed the title Buffer if custom content provider stream [WIP] Buffer if custom content provider stream Jan 29, 2025
This updates the `RequestBody.fromContentProvider()` methods such that the
underlying implementation will buffer the contents of the stream in memory
during the first pass through the stream.
@dagnir dagnir force-pushed the dongie/buffer-content-provider branch from 053ce86 to a6796ab Compare January 29, 2025 19:07
@dagnir dagnir dismissed stale reviews from millems and zoewangg January 29, 2025 19:07

New changes

@dagnir
Copy link
Contributor Author

dagnir commented Jan 30, 2025

Superceded by other PRs.

@dagnir dagnir closed this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants