The query string that `query` is sent as, parsed back into a dict.
(
self,
query: Mapping[str, object] | None = None,
*,
extra_query: Mapping[str, object] | None = None,
extra_body: Mapping[str, object] | None = None,
default_query: Mapping[str, object] | None = None,
)
| 79 | return json.loads(self.request.content) if self.request.content else None |
| 80 | |
| 81 | async def query( |
| 82 | self, |
| 83 | query: Mapping[str, object] | None = None, |
| 84 | *, |
| 85 | extra_query: Mapping[str, object] | None = None, |
| 86 | extra_body: Mapping[str, object] | None = None, |
| 87 | default_query: Mapping[str, object] | None = None, |
| 88 | ) -> dict[str, str]: |
| 89 | """The query string that `query` is sent as, parsed back into a dict.""" |
| 90 | options = make_request_options(query=query, extra_query=extra_query, extra_body=extra_body) |
| 91 | client = self._client.with_options(default_query=default_query) |
| 92 | if isinstance(client, Anthropic): |
| 93 | client.get("/foo", options=options, cast_to=httpx2.Response) |
| 94 | else: |
| 95 | await client.get("/foo", options=options, cast_to=httpx2.Response) |
| 96 | return dict(self.request.url.params) |
| 97 | |
| 98 | async def form(self, body: Mapping[str, object]) -> bytes: |
| 99 | """The multipart content that `body` is sent as next to a file.""" |
no test coverage detected