MCPcopy Create free account
hub / github.com/instantdb/instant / _request

Method _request

client/packages/python/src/instantdb/_async/http.py:123–140  ·  view source on GitHub ↗
(
        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:

Callers 3

postMethod · 0.95
getMethod · 0.95
deleteMethod · 0.95

Calls 3

_headersMethod · 0.95
_handle_responseMethod · 0.95
_jsonableFunction · 0.70

Tested by

no test coverage detected