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

Method _request

client/packages/python/src/instantdb/_sync/http.py:125–142  ·  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

123 return self._handle_response(response)
124
125 def _request(
126 self,
127 method: str,
128 path: str,
129 *,
130 params: dict[str, Any] | None = None,
131 json: Any = None,
132 unauthenticated: bool = False,
133 admin_only: bool = False,
134 ) -> Any:
135 response = self._client.request(
136 method,
137 path,
138 params=params,
139 json=_jsonable(json),
140 headers=self._headers(unauthenticated=unauthenticated, admin_only=admin_only),
141 )
142 return self._handle_response(response)
143
144 @staticmethod
145 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