from sanic import Sanicfrom sanic.response import jsonapp = Sanic("My Hello, world app")@app.route("/")async def test(request):return json({"hello": "world"})if __name__ == "__main__":app.run()
❯ curl localhost:8000 -iHTTP/1.1 200 OKcontent-length: 17connection: keep-alivecontent-type: application/json{"hello":"world"}
