fix: shield_update PATCH 메서드 수정 + client.py patch() 추가 + Bot Detection/Access Lists 도구
All checks were successful
CI / build (push) Successful in 42s
All checks were successful
CI / build (push) Successful in 42s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user