ux: LBC Styling, feat: thinking, feat: more tools:
This commit is contained in:
@@ -58,6 +58,15 @@ class UEXClient:
|
||||
)
|
||||
return self._handle_response(response)
|
||||
|
||||
async def delete(self, path: str, params: dict[str, Any] | None = None, authenticated: bool = True) -> dict[str, Any]:
|
||||
async with httpx.AsyncClient(timeout=30) as client:
|
||||
response = await client.delete(
|
||||
f"{self.base_url}/{path.strip('/')}/",
|
||||
params={k: v for k, v in (params or {}).items() if v is not None},
|
||||
headers=self._headers(authenticated),
|
||||
)
|
||||
return self._handle_response(response)
|
||||
|
||||
@staticmethod
|
||||
def _handle_response(response: httpx.Response) -> dict[str, Any]:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user