MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / post

Method post

core/http_client.py:84–93  ·  view source on GitHub ↗

Perform rate-limited POST request.

(
        self,
        url: str,
        data: Optional[dict[str, Any]] = None,
        json: Optional[dict[str, Any]] = None,
        headers: Optional[dict[str, str]] = None,
    )

Source from the content-addressed store, hash-verified

82 await self.rate_limiter.acquire()
83 return await self._client.get(url, params=params, headers=headers)
84
85 async def post(
86 self,
87 url: str,
88 data: dict[str, Any] | None = None,
89 json: dict[str, Any] | None = None,
90 headers: dict[str, str] | None = None,
91 ) -> httpx.Response:
92 """Perform rate-limited POST request."""
93 await self.rate_limiter.acquire()
94 return await self._client.post(url, data=data, json=json, headers=headers)
95
96 async def head(

Callers 10

test_connectionMethod · 0.80
exportMethod · 0.80
export_batchMethod · 0.80
exportMethod · 0.80
export_batchMethod · 0.80
chatMethod · 0.80
_callMethod · 0.80
_fetch_threatfoxFunction · 0.80
_handle_captureMethod · 0.80

Calls 1

acquireMethod · 0.80

Tested by 2

test_connectionMethod · 0.64