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

Method _request

slack_sdk/web/legacy_base_client.py:228–240  ·  view source on GitHub ↗

Submit the HTTP request with the running session or a new session. Returns: A dictionary of the response data.

(self, *, http_verb, api_url, req_args)

Source from the content-addressed store, hash-verified

226 return SlackResponse(**{**data, **res}).validate()
227
228 async def _request(self, *, http_verb, api_url, req_args) -> Dict[str, Any]:
229 """Submit the HTTP request with the running session or a new session.
230 Returns:
231 A dictionary of the response data.
232 """
233 return await _request_with_session(
234 current_session=self.session,
235 timeout=self.timeout,
236 logger=self._logger,
237 http_verb=http_verb,
238 api_url=api_url,
239 req_args=req_args,
240 )
241
242 # =================================================================
243 # urllib based WebClient

Callers 1

_sendMethod · 0.95

Calls 1

_request_with_sessionFunction · 0.70

Tested by

no test coverage detected