-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Adapted the HTTPlug integration docs to Async Client #12389
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
Conversation
Should we add some words about the async method? This one is not superseded by PSR18 and provides a promise-based API, which is a paradigm that could be worth mentioning? |
This PR was squashed before being merged into the 4.4 branch (closes #33743). Discussion ---------- [HttpClient] Async HTTPlug client | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #33710, Fix #32142 | License | MIT | Doc PR | symfony/symfony-docs#12389 This PR removes `HttplugClient`'s dependency on `Psr18Client`. It will also add an `HttplugPromise` to make sure we sure we respect the Httplug's `HttpAsyncClient` interface. It implements `HttpAsyncClient::sendAsyncRequest()` and provides two extensions: - `HttplugPromise::cancel()` allows cancelling a promise (and the underlying response) - `HttplugClient::wait()` allows to tick the promise pool, with configurable timeouts. Commits ------- 4fd593f [HttpClient] Async HTTPlug client
This PR was squashed before being merged into the 4.4 branch (closes #33743). Discussion ---------- [HttpClient] Async HTTPlug client | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #33710, Fix #32142 | License | MIT | Doc PR | symfony/symfony-docs#12389 This PR removes `HttplugClient`'s dependency on `Psr18Client`. It will also add an `HttplugPromise` to make sure we sure we respect the Httplug's `HttpAsyncClient` interface. It implements `HttpAsyncClient::sendAsyncRequest()` and provides two extensions: - `HttplugPromise::cancel()` allows cancelling a promise (and the underlying response) - `HttplugClient::wait()` allows to tick the promise pool, with configurable timeouts. Commits ------- 4fd593f869 [HttpClient] Async HTTPlug client
e785064
to
36ebb12
Compare
36ebb12
to
d353b61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed here the doc for all new features of HttpClient in 4.4
Thank you for completing this PR. I’m 👍 |
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] improve StreamWrapper | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | symfony/symfony-docs#12389 Spotted while working on the linked doc PR. Commits ------- ea52d1c [HttpClient] improve StreamWrapper
Thank you both 🙏 |
…holm, nicolas-grekas) This PR was merged into the 4.4 branch. Discussion ---------- Adapted the HTTPlug integration docs to Async Client This should be merged with symfony/symfony#33743 Closes #12472 Closes #12475 Commits ------- d353b61 Complete doc for 4.4 features 7295404 Adapted the HTTPlug integration docs to Async Client
This PR was squashed before being merged into the 4.4 branch (closes #33743). Discussion ---------- [HttpClient] Async HTTPlug client | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #33710, Fix #32142 | License | MIT | Doc PR | symfony/symfony-docs#12389 This PR removes `HttplugClient`'s dependency on `Psr18Client`. It will also add an `HttplugPromise` to make sure we sure we respect the Httplug's `HttpAsyncClient` interface. It implements `HttpAsyncClient::sendAsyncRequest()` and provides two extensions: - `HttplugPromise::cancel()` allows cancelling a promise (and the underlying response) - `HttplugClient::wait()` allows to tick the promise pool, with configurable timeouts. Commits ------- 4fd593f869 [HttpClient] Async HTTPlug client
This should be merged with symfony/symfony#33743
Closes #12472
Closes #12475