MCPcopy
hub / github.com/encode/httpx / keys

Method keys

httpx/_urls.py:463–472  ·  view source on GitHub ↗

Return all the keys in the query params. Usage: q = httpx.QueryParams("a=123&a=456&b=789") assert list(q.keys()) == ["a", "b"]

(self)

Source from the content-addressed store, hash-verified

461 }
462
463 def keys(self) -> typing.KeysView[str]:
464 """
465 Return all the keys in the query params.
466
467 Usage:
468
469 q = httpx.QueryParams("a=123&a=456&b=789")
470 assert list(q.keys()) == ["a", "b"]
471 """
472 return self._dict.keys()
473
474 def values(self) -> typing.ValuesView[str]:
475 """

Callers 2

__iter__Method · 0.95
test_queryparamsFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_queryparamsFunction · 0.76