kopia lustrzana https://github.com/cirospaciari/socketify.py
12 wiersze
308 B
Python
12 wiersze
308 B
Python
#!/usr/bin/env python3
|
|
|
|
from quart import Quart
|
|
|
|
|
|
app = Quart(__name__)
|
|
|
|
@app.get("/")
|
|
async def plaintext():
|
|
return "Hello, World!", {"Content-Type": "text/plain"}
|
|
|
|
# Quart perform really baddly for sure needs more optimizations, but socketify ASGI + PyPy performs better than uvicorn+httptools+gunicorn |