parameters: (self, request)
return_statement: return werkzeug.Response(f"Closed window {this_window_id}",
                                   content_type="text/plain",
                                   headers=self._HEADERS)
docstring: Close a WebRTC window on request.
docstring_summary: Close a WebRTC window on request.
docstring_tokens: Close a WebRTC window on request .
function: def _close_window(self, request):
          """Close a WebRTC window on request."""
          this_window_id = request.args.get('window_id', "")
          if this_window_id not in self._windows.keys():
              _log.warning(f"Invalid Window ID {this_window_id}")
              return werkzeug.exceptions.NotFound(
                  f"Invalid Window ID {this_window_id}",
                  response=self._ERROR_RESPONSE)
  
          self._gui.run_sync(self._windows[this_window_id].window.close)
          with self.window_lock:
              del self._windows[this_window_id]
          _log.debug(f"Window {this_window_id} closed.")
          return werkzeug.Response(f"Closed window {this_window_id}",
                                   content_type="text/plain",
                                   headers=self._HEADERS)
function_tokens: def _close_window ( self , request ) : this_window_id = request . args . get ( 'window_id' , "" ) if this_window_id not in self . _windows . keys ( ) : _log . warning ( f"Invalid Window ID {this_window_id}" ) return werkzeug . exceptions . NotFound ( f"Invalid Window ID {this_window_id}" , response = self . _ERROR_RESPONSE ) self . _gui . run_sync ( self . _windows [ this_window_id ] . window . close ) with self . window_lock : del self . _windows [ this_window_id ] _log . debug ( f"Window {this_window_id} closed." ) return werkzeug . Response ( f"Closed window {this_window_id}" , content_type = "text/plain" , headers = self . _HEADERS )