uvicornを読む
Github URL |
|
DeepWiki URL |
シーケンス図
sequenceDiagram
participant main.py
participant Config
participant Server
participant asyncio
main.py->>main.py: main()
main.py->>main.py: run(app, host, port, ...)
main.py->>Config: Config(app, host, port, ...)
Config-->>main.py: config
main.py->>Server: Server(config=config)
main.py->>Server: server.run()
Server->>Config: config.setup_event_loop()
Server->>asyncio: asyncio.run(self.serve(...))
asyncio->>Server: serve(sockets=sockets)
Server->>Config: config.lifespan_class(config)
Config-->>Server: 戻り値
Server->>Server: self.install_signal_handlers()
Server->>Server: self.startup(sockets=sockets)
Server->>Server: self.main_loop()
Server->>Server: self.shutdown(sockets=sockets)
Contents:
asyncioを読む
Contents: