Skip to content

Implement ProxyConfig class to encapsulate common proxy configuration logic. - #27306

Draft
dennisoelkers wants to merge 4 commits into
masterfrom
proxy-config-record
Draft

Implement ProxyConfig class to encapsulate common proxy configuration logic.#27306
dennisoelkers wants to merge 4 commits into
masterfrom
proxy-config-record

Conversation

@dennisoelkers

Copy link
Copy Markdown
Member

Description

Motivation and Context

Prior to this PR, several different places handling optional proxy configuration logic did the same things for e.g. splitting potential credentials from the configured proxy URL. This PR is consolidating this by implementing a common ProxyConfig class.

/nocl Internal refactoring.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have requested a documentation update.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

dennisoelkers and others added 4 commits September 3, 2026 15:23
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace the raw URI field with Optional<ProxyConfig> to leverage
the shared ProxyConfig value type from Task 1. The public API
remains unchanged: getProxyAddress() still returns the same
InetSocketAddress, and select() continues to call it dynamically
for each proxy selection, supporting mock-based testing scenarios.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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