Method
_request
(
self,
method: str,
path: str,
*,
params: dict[str, Any] | None = None,
json: Any = None,
unauthenticated: bool = False,
admin_only: bool = False,
)
Source from the content-addressed store, hash-verified
| 121 | return self._handle_response(response) |
| 122 | |
| 123 | async def _request( |
| 124 | self, |
| 125 | method: str, |
| 126 | path: str, |
| 127 | *, |
| 128 | params: dict[str, Any] | None = None, |
| 129 | json: Any = None, |
| 130 | unauthenticated: bool = False, |
| 131 | admin_only: bool = False, |
| 132 | ) -> Any: |
| 133 | response = await self._client.request( |
| 134 | method, |
| 135 | path, |
| 136 | params=params, |
| 137 | json=_jsonable(json), |
| 138 | headers=self._headers(unauthenticated=unauthenticated, admin_only=admin_only), |
| 139 | ) |
| 140 | return self._handle_response(response) |
| 141 | |
| 142 | @staticmethod |
| 143 | def _handle_response(response: httpx.Response) -> Any: |
Tested by
no test coverage detected