diff --git a/docs/sanic/request_data.md b/docs/sanic/request_data.md index f411ed8d..a86a0f21 100644 --- a/docs/sanic/request_data.md +++ b/docs/sanic/request_data.md @@ -85,6 +85,12 @@ The following variables are accessible as properties on `Request` objects: return json({'status': 'production'}) ``` +- `url`: The full URL of the request, ie: `http://localhost:8000/posts/1/?foo=bar` +- `scheme`: The URL scheme associated with the request: `http` or `https` +- `host`: The host associated with the request: `localhost:8080` +- `path`: The path of the request: `/posts/1/` +- `query_string`: The query string of the request: `foo=bar` or a blank string `''` + ## Accessing values using `get` and `getlist` diff --git a/sanic/exceptions.py b/sanic/exceptions.py index 4f01d64e..e30c178c 100644 --- a/sanic/exceptions.py +++ b/sanic/exceptions.py @@ -70,7 +70,7 @@ TRACEBACK_WRAPPER_HTML = ''' {frame_html}
{exc_name}: {exc_value}
- while handling uri {uri}
+ while handling path {path}