def run(self, host: str="<STR_LIT:localhost>", port: int=<NUM_LIT>, debug: bool=False):
self.debug = debug<EOL>loop = asyncio.get_event_loop()<EOL>try:<EOL><INDENT>loop.run_until_complete(self.start_server(host, port))<EOL>loop.run_forever()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>loop.run_until_complete(self.signal_manager.activate('<STR_LIT>'))<EOL>loop.run_until_complete(self.close_server_async())<EOL>loop.run_until_complete(self.signal_manager.activate('<STR_LIT>'))<EOL>loop.run_until_complete(asyncio.gather(*asyncio.Task.all_tasks()))<EOL>loop.close()<EOL><DEDENT>
start the http server
:param host: The listening host
:param port: The listening port
:param debug: whether it is in debug mod or not