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

Method send_dict

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

Source from the content-addressed store, hash-verified

51 )
52
53 def send_dict(self, body: Dict[str, any], headers: Optional[Dict[str, str]] = None) -> WebhookResponse:
54 return self._perform_http_request(
55 body=_build_body(body),
56 headers=_build_request_headers(self.default_headers, headers),
57 )
58
59 def _perform_http_request(self, *, body: Dict[str, any], headers: Dict[str, str]) -> WebhookResponse:
60 body = json.dumps(body)

Calls 3

_perform_http_requestMethod · 0.95
_build_bodyFunction · 0.70
_build_request_headersFunction · 0.70