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
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 theparams
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