Server Reference
main
Server entry point: generates the Caddyfile, starts Caddy and uvicorn.
attributelogger= logging.getLogger(__name__)attributecaddy_processsubprocess.Popen | None= Nonefuncrun_caddy() -> NoneRender the Caddyfile template and start Caddy as a child process.
Returns
Nonefuncstop_caddy(signum=None, frame=None) -> NoneStop the Caddy process group if it is still running.
paramsignumint | None= NoneSignal number when invoked as a signal handler.
paramframeAny= NoneCurrent stack frame (unused).
Returns
Nonefunc_serve() -> NoneStart Caddy and the API server, waiting until shutdown.
Returns
Nonefuncmain() -> NoneSynchronous entry point: install uvloop, install signal handlers, run.
Returns
None