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

Remove unnecessary proxyAddress from HttpClientBuildContext #2720

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

HttpClientBuildContext takes a copy of
DefaultSingleAddressHttpClientBuilder. There is no need to worry that ctx.builder.proxyAddress can change. As the result, we can safely remove ctx.proxyAddress.

Modifications:

  • Remove HttpClientBuildContext.proxyAddress;

Result:

Less code.

Motivation:

`HttpClientBuildContext` takes a copy of
`DefaultSingleAddressHttpClientBuilder`. There is no need to worry that
`ctx.builder.proxyAddress` can change. As the result, we can safely
remove `ctx.proxyAddress`.

Modifications:

- Remove `HttpClientBuildContext.proxyAddress`;

Result:

Less code.
@idelpivnitskiy idelpivnitskiy self-assigned this Oct 2, 2023
@idelpivnitskiy idelpivnitskiy merged commit 2aacf9e into apple:main Oct 3, 2023
15 checks passed
@idelpivnitskiy idelpivnitskiy deleted the proxyAddress branch October 3, 2023 06:29
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.

None yet

2 participants