MCPcopy
hub / github.com/GetBindu/Bindu / get

Method get

bindu/utils/http/client.py:196–217  ·  view source on GitHub ↗

Make GET request with automatic retry. Args: endpoint: API endpoint params: URL query parameters headers: Additional headers **kwargs: Additional arguments Returns: HTTP response

(
        self,
        endpoint: str,
        *,
        params: dict[str, Any] | None = None,
        headers: dict[str, str] | None = None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

194
195 @create_retry_decorator("api")
196 async def get(
197 self,
198 endpoint: str,
199 *,
200 params: dict[str, Any] | None = None,
201 headers: dict[str, str] | None = None,
202 **kwargs,
203 ) -> aiohttp.ClientResponse:
204 """Make GET request with automatic retry.
205
206 Args:
207 endpoint: API endpoint
208 params: URL query parameters
209 headers: Additional headers
210 **kwargs: Additional arguments
211
212 Returns:
213 HTTP response
214 """
215 return await self.request(
216 "GET", endpoint, params=params, headers=headers, **kwargs
217 )
218
219 @create_retry_decorator("api")
220 async def post(

Callers 15

get_loggerFunction · 0.45
_post_with_retryMethod · 0.45
_build_headersMethod · 0.45
wrapperFunction · 0.45
get_did_keysMethod · 0.45
get_mtls_materialMethod · 0.45
dict_to_partMethod · 0.45
from_resultMethod · 0.45
intercept_and_parseMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected