Perform rate-limited POST request.
(
self,
url: str,
data: Optional[dict[str, Any]] = None,
json: Optional[dict[str, Any]] = None,
headers: Optional[dict[str, str]] = None,
)
| 82 | await self.rate_limiter.acquire() |
| 83 | return await self._client.get(url, params=params, headers=headers) |
| 84 | |
| 85 | async def post( |
| 86 | self, |
| 87 | url: str, |
| 88 | data: dict[str, Any] | None = None, |
| 89 | json: dict[str, Any] | None = None, |
| 90 | headers: dict[str, str] | None = None, |
| 91 | ) -> httpx.Response: |
| 92 | """Perform rate-limited POST request.""" |
| 93 | await self.rate_limiter.acquire() |
| 94 | return await self._client.post(url, data=data, json=json, headers=headers) |
| 95 | |
| 96 | async def head( |