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

Method post

bindu/utils/http/client.py:220–243  ·  view source on GitHub ↗

Make POST request with automatic retry. Args: endpoint: API endpoint data: Form data to send json: JSON data to send headers: Additional headers **kwargs: Additional arguments Returns: HTTP response

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

Source from the content-addressed store, hash-verified

218
219 @create_retry_decorator("api")
220 async def post(
221 self,
222 endpoint: str,
223 *,
224 data: dict[str, Any] | None = None,
225 json: dict[str, Any] | None = None,
226 headers: dict[str, str] | None = None,
227 **kwargs,
228 ) -> aiohttp.ClientResponse:
229 """Make POST request with automatic retry.
230
231 Args:
232 endpoint: API endpoint
233 data: Form data to send
234 json: JSON data to send
235 headers: Additional headers
236 **kwargs: Additional arguments
237
238 Returns:
239 HTTP response
240 """
241 return await self.request(
242 "POST", endpoint, data=data, json=json, headers=headers, **kwargs
243 )
244
245 @create_retry_decorator("api")
246 async def put(

Calls 1

requestMethod · 0.95