Skip to content

Add proxy matching to adapters that support it.#1126

Open
nialbima wants to merge 1 commit into
bblimke:masterfrom
nialbima:feature/proxy-matching
Open

Add proxy matching to adapters that support it.#1126
nialbima wants to merge 1 commit into
bblimke:masterfrom
nialbima:feature/proxy-matching

Conversation

@nialbima
Copy link
Copy Markdown

@nialbima nialbima commented Apr 9, 2026

This is a very-brainless implementation of matching on proxy for Webmock. Not all the supported Webmock adapters supported proxy config in an easy way, so I implemented these ones only (the other ones ignore the argument):

  • Net::HTTP
  • Excon
  • Patron
  • Typhoeus
  • Curb

It's really, really similar to how Webmock implements headers. I added examples to the README, and made sure to cover my work thoroughly (which is why this PR is 500 lines).

@Nakilon
Copy link
Copy Markdown

Nakilon commented Apr 9, 2026

a very-brainless

because Claude? /s

@nialbima
Copy link
Copy Markdown
Author

nialbima commented Apr 9, 2026

@Nakilon oh absolutely. I reviewed all of the work myself and it's really, really similar to how headers were implemented here, so I felt comfortable opening the PR. But yeah, this was "i need my app to confirm that it actually found the proxy i need it to find, Clerd, have at it."

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