Return all items in the query params. If a key occurs more than once only the first item for that key is returned. Usage: q = httpx.QueryParams("a=123&a=456&b=789") assert list(q.items()) == [("a", "123"), ("b", "789")]
(self)
| 484 | return {k: v[0] for k, v in self._dict.items()}.values() |
| 485 | |
| 486 | def items(self) -> typing.ItemsView[str, str]: |
| 487 | """ |
| 488 | Return all items in the query params. If a key occurs more than once |
| 489 | only the first item for that key is returned. |
| 490 | |
| 491 | Usage: |
| 492 | |
| 493 | q = httpx.QueryParams("a=123&a=456&b=789") |
| 494 | assert list(q.items()) == [("a", "123"), ("b", "789")] |
| 495 | """ |
| 496 | return {k: v[0] for k, v in self._dict.items()}.items() |
| 497 | |
| 498 | def multi_items(self) -> list[tuple[str, str]]: |
| 499 | """ |
no outgoing calls