ASGIアプリケーションの実行には、候補としてUvicorn・Hypercorn・Daphneの3つがあります。 それぞれの概要と起動方法をみておきます。 ASGIアプリケーション それぞれの特徴を見る前に、確認用のASGIアプリを作成しておきます。 次のコードは、HTTPのレスポンスボディとしてurlのパスを送信します。 main.py async def app(scope, receive, send): headers = [(b"content-type", b"text/html")] await send({"type": "http.response.start", "status": 200, "headers": headers}) await send({"type": "http.response.body", "body": scope["raw_path"]})