MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / send_dict

Method send_dict

slack/webhook/async_client.py:69–73  ·  view source on GitHub ↗
(self, body: Dict[str, any], headers: Optional[Dict[str, str]] = None)

Source from the content-addressed store, hash-verified

67 )
68
69 async def send_dict(self, body: Dict[str, any], headers: Optional[Dict[str, str]] = None) -> WebhookResponse:
70 return await self._perform_http_request(
71 body=_build_body(body),
72 headers=_build_request_headers(self.default_headers, headers),
73 )
74
75 async def _perform_http_request(self, *, body: Dict[str, any], headers: Dict[str, str]) -> WebhookResponse:
76 body = json.dumps(body)

Calls 3

_perform_http_requestMethod · 0.95
_build_bodyFunction · 0.70
_build_request_headersFunction · 0.70