MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / serve_async

Function serve_async

openosint/web_server.py:947–956  ·  view source on GitHub ↗

Run uvicorn within an already-running asyncio event loop.

(host: str = "0.0.0.0", port: int = 8080)

Source from the content-addressed store, hash-verified

945
946
947async def serve_async(host: str = "0.0.0.0", port: int = 8080) -> None:
948 """Run uvicorn within an already-running asyncio event loop."""
949 from dotenv import load_dotenv
950
951 load_dotenv()
952 app = create_app()
953 _print_banner(host, port)
954 config = uvicorn.Config(app, host=host, port=port, log_level="warning", loop="none")
955 server = uvicorn.Server(config)
956 await server.serve()
957
958
959def run_server(host: str = "0.0.0.0", port: int = 8080) -> None:

Callers 1

_handle_webFunction · 0.90

Calls 2

create_appFunction · 0.85
_print_bannerFunction · 0.70

Tested by

no test coverage detected