Skip to content

Support HTTP/HTTPS proxy agent in AppStoreServerAPIClient - #442

Open
shubhransh-gupta wants to merge 1 commit into
apple:mainfrom
shubhransh-gupta:support-http-agent-proxy
Open

Support HTTP/HTTPS proxy agent in AppStoreServerAPIClient#442
shubhransh-gupta wants to merge 1 commit into
apple:mainfrom
shubhransh-gupta:support-http-agent-proxy

Conversation

@shubhransh-gupta

Copy link
Copy Markdown

Summary

Resolves #352.

Adds support for passing an HTTP/HTTPS agent (e.g. from https-proxy-agent, http-proxy-agent, or standard http.Agent/https.Agent) to AppStoreServerAPIClient for environments that require an outbound proxy or custom connection pooling.

Changes

  • Added optional agent parameter to AppStoreServerAPIClient constructor.
  • Added setAgent(agent) and getAgent() methods on AppStoreServerAPIClient.
  • Forwarded agent to fetch options in makeFetchRequest.
  • Added unit tests in tests/unit-tests/api_client.test.ts verifying agent configuration and getter/setter behavior.

Verification

  • npm run build completed successfully.
  • npm test passed all 22 test suites (346/346 unit tests).
  • npm run build-docs completed successfully.

Resolves apple#352 by adding support for passing an optional HTTP/HTTPS agent (such as https-proxy-agent or http-proxy-agent) to AppStoreServerAPIClient via the constructor or through setAgent/getAgent methods, and passing it to fetch in makeFetchRequest.
@shubhransh-gupta

Copy link
Copy Markdown
Author

Hi @alexanderjordanbaker — Friendly reminder on this PR when you have time for a review. It resolves #352 by adding outbound proxy support (agent) to AppStoreServerAPIClient. Full TypeScript build and test suite pass with 100% test coverage. Thank you!

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 using an HTTP proxy

1 participant