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

Method _handle

tests/rtm/mock_web_api_server.py:46–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 }
45
46 def _handle(self):
47 if self.is_invalid_rtm_start():
48 self.send_response(HTTPStatus.BAD_REQUEST)
49 self.set_common_headers()
50 return
51
52 self.send_response(HTTPStatus.OK)
53 self.set_common_headers()
54 body = self.rtm_start_success if self.is_valid_token() else self.rtm_start_failure
55 self.wfile.write(json.dumps(body).encode("utf-8"))
56 self.wfile.close()
57
58 def do_GET(self):
59 self._handle()

Callers 2

do_GETMethod · 0.95
do_POSTMethod · 0.95

Calls 4

is_invalid_rtm_startMethod · 0.95
set_common_headersMethod · 0.95
is_valid_tokenMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected