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

Add support for using a network proxy to make outgoing web requests #143

Merged
merged 6 commits into from
Jun 8, 2022

Conversation

TooManyBees
Copy link
Contributor

Adds GitHubPages::HealthCheck.set_proxy(proxy_url) method. When used, all subsequent uses of the gem will force HTTP traffic through a proxy at proxy_url.

TooManyBees and others added 6 commits June 8, 2022 11:10
Co-authored-by: James M. Greene <JamesMGreene@github.com>
This test does not ensure that web requests are actually *made* with the
specified proxy. That is currently beyond the ability of WebMock to
assert (bblimke/webmock#753). However Typhoeus
does raise an exception when an invalid option is passed to its Request
object, so we can be reasonably assured that Typhoeus will in fact
receive the intended proxy url and use it.
@TooManyBees TooManyBees merged commit 1672073 into master Jun 8, 2022
@TooManyBees TooManyBees deleted the network-proxy branch June 8, 2022 19:48
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.

3 participants