Skip to content

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

Merged
merged 2 commits into from
Nov 1, 2019

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Sep 27, 2019

This should be merged with symfony/symfony#33743

Closes #12472
Closes #12475

@OskarStark OskarStark added this to the 4.4 milestone Sep 28, 2019
@OskarStark OskarStark added Waiting Code Merge Docs for features pending to be merged HttpClient labels Sep 28, 2019
@nicolas-grekas
Copy link
Member

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?

nicolas-grekas added a commit to symfony/symfony that referenced this pull request Oct 7, 2019
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
symfony-splitter pushed a commit to symfony/http-client that referenced this pull request Oct 7, 2019
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
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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

@Nyholm
Copy link
Member Author

Nyholm commented Oct 14, 2019

Thank you for completing this PR.

I’m 👍

nicolas-grekas added a commit to symfony/symfony that referenced this pull request Oct 16, 2019
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
@OskarStark
Copy link
Contributor

Thank you both 🙏

OskarStark added a commit that referenced this pull request Nov 1, 2019
…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
@OskarStark OskarStark merged commit d353b61 into symfony:4.4 Nov 1, 2019
sadafrangian3 pushed a commit to sadafrangian3/Dependency-Injection-http-client that referenced this pull request Nov 2, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HttpClient Status: Reviewed Waiting Code Merge Docs for features pending to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants