diff --git a/docs/sanic/streaming.md b/docs/sanic/streaming.md index 1f8e63f6..a2ff8955 100644 --- a/docs/sanic/streaming.md +++ b/docs/sanic/streaming.md @@ -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 = '' diff --git a/examples/request_stream/server.py b/examples/request_stream/server.py index 696807b0..a825de6b 100644 --- a/examples/request_stream/server.py +++ b/examples/request_stream/server.py @@ -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 = ''