(self, handler: WebSocketHandler)
| 917 | return native_str(base64.b64encode(sha1.digest())) |
| 918 | |
| 919 | def _challenge_response(self, handler: WebSocketHandler) -> str: |
| 920 | return WebSocketProtocol13.compute_accept_value( |
| 921 | cast(str, handler.request.headers.get("Sec-Websocket-Key")) |
| 922 | ) |
| 923 | |
| 924 | async def _accept_connection(self, handler: WebSocketHandler) -> None: |
| 925 | subprotocol_header = handler.request.headers.get("Sec-WebSocket-Protocol") |
no test coverage detected