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

feat: add support for match_params allowing partial params matching #173

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

pbabics
Copy link

@pbabics pbabics commented Nov 19, 2024

Hi,

In my company we've have a case where we want to match one parameter of query string and ignore others, right now this is only possible via regex as using httpx.URL(..., params = ...) will convert all the params to strings, so if we pass something like {"a": 1, "b": ANY} we get{"a": 1, "b": "<ANY>"}, that does not get matched.

So this PR is adding support for extra keyword argument match_params allowing to pass them directly

Copy link

sonarcloud bot commented Nov 19, 2024

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.

1 participant