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

Allow skipping the default interceptors in HttpClientBuilder #241

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

kelunik
Copy link
Member

@kelunik kelunik commented Jan 1, 2020

Alternative implementation to #238. Closes #238.

Closes #238.

Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
@nicolas-grekas
Copy link
Contributor

In the end, I'm not going to use HttpClientBuilder, so that this is not needed on Symfony's side anymore.

@kelunik kelunik requested a review from trowski January 12, 2020 17:50
@trowski trowski merged commit a74fde7 into master Jan 14, 2020
fabpot added a commit to symfony/symfony that referenced this pull request Mar 2, 2020
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113fe [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
symfony-splitter pushed a commit to symfony/http-client that referenced this pull request Mar 2, 2020
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
@kelunik kelunik deleted the skip-default-interceptors branch May 9, 2020 12:14
sadafrangian3 pushed a commit to sadafrangian3/Dependency-Injection-http-client that referenced this pull request Nov 2, 2022
…on Amp's HTTP client (nicolas-grekas)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~amphp/http-client#241
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] amphp/http-client#243
- [x] amphp/http-client#242
- [x] amphp/http-client#250
- [x] amphp/http-client#239
- [x] ~kelunik/certificate#2
- [x] amphp/socket#71
- [x] amphp/http-client#252

Commits
-------

ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants