Skip to content

Conversation

stevenmcdonald
Copy link
Owner

@stevenmcdonald stevenmcdonald commented Jun 4, 2025

We've heard Google is working on proxy support in Cronet on their own... I'll leave this here for now for reference

--

This adds support to Cronet for using an HTTP(S) or SOCKS proxy server. In the current implementation, it's an EngineBuilder option to set a proxy for the Engine

This is maybe related to: https://issues.chromium.org/issues/40386536

This functionality is used in GreatFire's Envoy: https://github.com/greatfire/envoy

@@ -669,6 +683,29 @@ TEST_P(UrlRequestTest, SimpleGet) {
ExpectResponseInfoEquals(expected_response_info, *callback->response_info());
}

TEST_P(UrlRequestTest, ProxyGet) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

I could use some advice on improving this test. The test server doesn't seem to be set up for the 2 step process of "CONNECT" and then request. I'm not quite sure what the best way is to fully test this code

@stevenmcdonald stevenmcdonald changed the title Cronet proxy support from GreatFire Envoy Obsolete: Cronet proxy support from GreatFire Envoy Jul 11, 2025
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.

1 participant