fix: shield_update PATCH 메서드 수정 + client.py patch() 추가 + Bot Detection/Access Lists 도구
All checks were successful
CI / build (push) Successful in 42s

This commit is contained in:
kappa
2026-04-13 10:29:06 +09:00
parent b072736d30
commit f5e9b7850c
2 changed files with 11 additions and 1 deletions

View File

@@ -34,6 +34,15 @@ class BunnyClient:
)
return self._handle(resp)
async def patch(self, path: str, json: dict | None = None) -> dict | list | str:
async with httpx.AsyncClient(timeout=REQUEST_TIMEOUT) as c:
resp = await c.patch(
f"{self._base}{path}",
headers=self._headers,
json=json,
)
return self._handle(resp)
async def put(self, path: str, json: dict | None = None) -> dict | list | str:
async with httpx.AsyncClient(timeout=REQUEST_TIMEOUT) as c:
resp = await c.put(