(self, handler: WebSocketHandler)
| 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") |
no test coverage detected