Skip to content

Conversation

@cequele
Copy link
Contributor

@cequele cequele commented Mar 11, 2025

This PR adds the ability to route HTTP requests through a proxy server.

Changes

  • Add proxy parameter to Twingly::HTTP::Client initialization
  • Configure Faraday connection to use the specified proxy

Tests

  • Start Rack-based proxy and target servers to verify that requests are properly routed through the proxy

cequele added 4 commits March 3, 2025 16:26
In case we are being blocked by a domain we need to be able to use a proxy.
Make sure that the proxy is configured properly when added to client.
Add a proxy server and a target server to enable tests for ensuring requests are routed trough proxy
Implement shared examples for proxy configuration and routing
@cequele cequele requested review from roback and yendi127 March 11, 2025 10:10
Copy link
Member

@roback roback left a comment

Choose a reason for hiding this comment

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

Some small comments, but other than that I think everything here looks good 😃

Copy link
Member

@roback roback left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

Copy link
Contributor

@yendi127 yendi127 left a comment

Choose a reason for hiding this comment

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

LGTM! Good job! 🥳

@cequele cequele merged commit c2f8ada into master Mar 13, 2025
10 checks passed
@cequele cequele deleted the add-proxy-option branch March 13, 2025 08:32
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.

4 participants