diff --git a/docs/sanic/response.rst b/docs/sanic/response.rst index 75a44425..6fb487b2 100644 --- a/docs/sanic/response.rst +++ b/docs/sanic/response.rst @@ -107,6 +107,19 @@ Response without encoding the body def handle_request(request): return response.raw(b'raw data') +Empty +-------------- + +For responding with a empty message as defined by `RFC 2616 `_ + +.. code-block:: python + + from sanic import response + + @app.route('/empty') + async def handle_request(request): + return response.empty() + Modify headers or status ------------------------