From 73c04f5a8970a77bd1af9ad9f7e3423137d3318e Mon Sep 17 00:00:00 2001 From: Anatoly Ivanov Date: Fri, 8 Sep 2017 14:21:49 +0300 Subject: [PATCH] Added information on request.token The manual lacked info about request.token, which keeps authorization data. See https://github.com/channelcat/sanic/blob/master/sanic/request.py#L84 for details --- docs/sanic/request_data.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sanic/request_data.md b/docs/sanic/request_data.md index a62b7e6a..e778faf6 100644 --- a/docs/sanic/request_data.md +++ b/docs/sanic/request_data.md @@ -97,6 +97,7 @@ The following variables are accessible as properties on `Request` objects: - `path`: The path of the request: `/posts/1/` - `query_string`: The query string of the request: `foo=bar` or a blank string `''` - `uri_template`: Template for matching route handler: `/posts//` +- `token`: The value of Authorization header: `Basic YWRtaW46YWRtaW4=` ## Accessing values using `get` and `getlist`