more info in docs

This commit is contained in:
Suby Raman 2017-02-21 11:38:57 -05:00
parent fa13ad8849
commit 1a8961587c

View File

@ -3,6 +3,9 @@
Sanic allows you to stream content to the client with the `stream` method. This method accepts a coroutine callback which is passed a `StreamingHTTPResponse` object that is written to. A simple example is like follows:
```python
from sanic import Sanic
from sanic.response import stream
app = Sanic(__name__)
@app.route("/")