Update README.md
This commit is contained in:
17
README.md
17
README.md
@@ -1,3 +1,18 @@
|
||||
# SlowAPI
|
||||
|
||||
A barely working HTTP server
|
||||
A barely working HTTP server
|
||||
|
||||
```py
|
||||
from slow import App, render
|
||||
|
||||
app = App()
|
||||
|
||||
@app.GET("/")
|
||||
def home(request):
|
||||
return render("index.html")
|
||||
|
||||
import asyncio
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(app.run(host="localhost", port=8080))
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user