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

pkgs/ok_http: Stream response bodies. #1233

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

Anikate-De
Copy link
Contributor

Items in this PR:

  • Create class AsyncInputStreamReader that provides a function to asynchronously read a java.io.InputStream using ExecutorService, and generate bindings
  • Implement the DataCallback interface and add the required logic to stream response bodies
  • Replaced individual test groups with testAll

This PR marks 100% conformance of package:ok_http with HTTP standards! 🎉


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

Copy link

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a high level, this looks great and is what I envisioned when we talked! I'll defer to @brianquinlan for a final review :)

@brianquinlan brianquinlan merged commit 8c325b9 into dart-lang:master Jun 13, 2024
29 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jun 14, 2024
Revisions updated by `dart tools/rev_sdk_deps.dart`.

collection (https://github.com/dart-lang/collection/compare/c90b19f..9354f38):
  9354f38  2024-06-13  Kevin Moore  Require Dart 3.4, test wasm on 3.4, prepare release (dart-lang/collection#349)

http (https://github.com/dart-lang/http/compare/e2e2170..8c325b9):
  8c325b9  2024-06-14  Anikate De  pkgs/ok_http: Stream response bodies. (dart-lang/http#1233)

http_parser (https://github.com/dart-lang/http_parser/compare/53d4041..71b4c2c):
  71b4c2c  2024-06-13  Graciliano Monteiro Passos  `CaseInsensitiveMap`: added constructor `fromEntries`. (dart-lang/http_parser#99)

Change-Id: I0f848975241261f42e0759d00188fef12731a085
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371740
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Reviewed-by: Kevin Moore <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
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