Return a new QueryParams instance, removing the value of a key. Usage: q = httpx.QueryParams("a=123") q = q.remove("a") assert q == httpx.QueryParams("")
(self, key: str)
| 565 | return q |
| 566 | |
| 567 | def remove(self, key: str) -> QueryParams: |
| 568 | class="st">""" |
| 569 | Return a new QueryParams instance, removing the value of a key. |
| 570 | |
| 571 | Usage: |
| 572 | |
| 573 | q = httpx.QueryParams(class="st">"a=123") |
| 574 | q = q.remove(class="st">"a") |
| 575 | assert q == httpx.QueryParams(class="st">"") |
| 576 | class="st">""" |
| 577 | q = QueryParams() |
| 578 | q._dict = dict(self._dict) |
| 579 | q._dict.pop(str(key), None) |
| 580 | return q |
| 581 | |
| 582 | def merge(self, params: QueryParamTypes | None = None) -> QueryParams: |
| 583 | class="st">""" |