Fix streaming.md

This commit is contained in:
38elements 2017-05-08 00:10:36 +09:00
parent 0b53c413a7
commit 15ad07f03d
2 changed files with 1 additions and 11 deletions

View File

@ -44,7 +44,7 @@ from sanic.blueprints import Blueprint
from sanic.response import stream, text
bp = Blueprint('blueprint_request_stream')
app = Sanic('request_stream', is_request_stream=True)
app = Sanic('request_stream')
class SimpleView(HTTPMethodView):
@ -72,11 +72,6 @@ async def handler(request):
return stream(streaming)
@app.get('/get')
async def get(request):
return text('OK')
@bp.stream('/bp_stream')
async def bp_handler(request):
result = ''

View File

@ -34,11 +34,6 @@ async def handler(request):
return stream(streaming)
@app.get('/get')
async def get(request):
return text('OK')
@bp.stream('/bp_stream')
async def bp_handler(request):
result = ''