code: def build_response(headers: Headers, key: str) -> None:
      
      headers["Upgrade"] = "websocket"
      headers["Connection"] = "Upgrade"
      headers["Sec-WebSocket-Accept"] = accept(key)
docs: Build a handshake response to send to the client.
  
      ``key`` comes from :func:`check_request`.