MCPcopy Create free account
hub / github.com/EasyIME/PIME / _challenge_response

Method _challenge_response

python/python3/tornado/websocket.py:896–899  ·  view source on GitHub ↗
(self, handler: WebSocketHandler)

Source from the content-addressed store, hash-verified

894 return native_str(base64.b64encode(sha1.digest()))
895
896 def _challenge_response(self, handler: WebSocketHandler) -> str:
897 return WebSocketProtocol13.compute_accept_value(
898 cast(str, handler.request.headers.get("Sec-Websocket-Key"))
899 )
900
901 async def _accept_connection(self, handler: WebSocketHandler) -> None:
902 subprotocol_header = handler.request.headers.get("Sec-WebSocket-Protocol")

Callers 1

_accept_connectionMethod · 0.95

Calls 2

compute_accept_valueMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected