README: minor revisit [ci skip] (#265)

This commit is contained in:
Daniel Hahler 2018-12-11 14:07:16 +01:00 committed by Tom Christie
parent 56b4d73c3a
commit 9d0b4c01bd
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,8 @@
---
# Starlette
Starlette is a lightweight [ASGI](https://asgi.readthedocs.io/en/latest/) framework/toolkit,
which is ideal for building high performance asyncio services.
@ -64,6 +66,7 @@ import uvicorn
app = Starlette()
@app.route('/')
async def homepage(request):
return JSONResponse({'hello': 'world'})
@ -72,7 +75,7 @@ if __name__ == '__main__':
uvicorn.run(app, host='0.0.0.0', port=8000)
```
For a more complete example, [see here](https://github.com/encode/starlette-example).
For a more complete example, see [encode/starlette-example](https://github.com/encode/starlette-example).
## Dependencies