def start_threaded_server(port): protected = ("/protected.html",) server = webserver.get_server('', port, get_file_path(), False, protected) thread = threading.Thread(target=server.serve_forever) thread.start() return server, thread
def start_threaded_server(port): protected = ("/protected.html", ) server = webserver.get_server('', port, get_file_path(), False, protected) thread = threading.Thread(target=server.serve_forever) thread.start() return server, thread
def start_webserver(self): if not self.webserver: self.webserver = get_server(self) self.webserver_thread = Thread(target=self.webserver.serve_forever) self.webserver_thread.start()