Skip to content

Comments

feat: Allow proxy settings to be overridden.#189

Merged
JamieSinn merged 2 commits intomainfrom
proxy-exposure-http-options
Feb 18, 2026
Merged

feat: Allow proxy settings to be overridden.#189
JamieSinn merged 2 commits intomainfrom
proxy-exposure-http-options

Conversation

@JamieSinn
Copy link
Member

@JamieSinn JamieSinn commented Feb 18, 2026

Allow network level proxy settings to be overridden.

@JamieSinn JamieSinn requested a review from a team as a code owner February 18, 2026 16:37
Copilot AI review requested due to automatic review settings February 18, 2026 16:37
@JamieSinn JamieSinn enabled auto-merge (squash) February 18, 2026 16:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the SDK’s request customization surface to support overriding proxy configuration via IRestOptions, and wires those new options into the shared OkHttp client setup.

Changes:

  • Added proxy-related getters to IRestOptions (proxy, proxy selector, proxy authenticator).
  • Updated APIUtils.applyRestOptions to apply the new proxy settings to the OkHttp builder.
  • Updated DevCycleLocalClientTest’s IRestOptions anonymous implementation to satisfy the expanded interface (plus minor formatting/import cleanup).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/main/java/com/devcycle/sdk/server/common/api/IRestOptions.java Adds new proxy customization methods to the public REST options interface.
src/main/java/com/devcycle/sdk/server/common/api/APIUtils.java Applies proxy configuration from IRestOptions onto the OkHttp client builder.
src/test/java/com/devcycle/sdk/server/local/DevCycleLocalClientTest.java Updates test IRestOptions implementation to include new proxy-related methods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JamieSinn JamieSinn merged commit 73eecfc into main Feb 18, 2026
7 checks passed
@JamieSinn JamieSinn deleted the proxy-exposure-http-options branch February 18, 2026 16:51
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.

2 participants