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

Add support for HTTP(S) proxies to clients. #1580

Merged
merged 8 commits into from
Feb 1, 2025
Merged

Add support for HTTP(S) proxies to clients. #1580

merged 8 commits into from
Feb 1, 2025

Conversation

aaugustin
Copy link
Member

Fix #364.

@aaugustin aaugustin marked this pull request as draft January 25, 2025 08:05
@aaugustin aaugustin force-pushed the http-proxy branch 8 times, most recently from a05533f to 4a8be89 Compare February 1, 2025 16:22
@aaugustin aaugustin marked this pull request as ready for review February 1, 2025 16:43
@aaugustin aaugustin force-pushed the http-proxy branch 7 times, most recently from 8968d04 to b36412b Compare February 1, 2025 21:09
This reduces the run time of the test suite by 40%, from 6.7s to 4.1s.
This avoids mixing TLS termination by mitmproxy and by websockets.
Specifically, not hiding the __cause__ of TimeoutError makes it visible
when it happens while connecting to a proxy.
This allows keeping the connection open after reading the response
to a CONNECT request.
@aaugustin aaugustin force-pushed the http-proxy branch 2 times, most recently from a315b8b to 6e72e55 Compare February 1, 2025 21:40
@aaugustin aaugustin merged commit 2b9a90a into main Feb 1, 2025
7 checks passed
@aaugustin aaugustin deleted the http-proxy branch February 1, 2025 21:46
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.

Add support for HTTP(S) proxies to connect()
1 participant