ASGIã¢ããªã±ã¼ã·ã§ã³ã®å®è¡ã«ã¯ãåè£ã¨ãã¦Uvicornã»Hypercornã»Daphneã®ï¼ã¤ãããã¾ãã ããããã®æ¦è¦ã¨èµ·åæ¹æ³ãã¿ã¦ããã¾ãã 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"]})
{{#tags}}- {{label}}
{{/tags}}