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
This commit is contained in:
parent
8b4ca51805
commit
73c04f5a89
|
@ -97,6 +97,7 @@ The following variables are accessible as properties on `Request` objects:
|
||||||
- `path`: The path of the request: `/posts/1/`
|
- `path`: The path of the request: `/posts/1/`
|
||||||
- `query_string`: The query string of the request: `foo=bar` or a blank string `''`
|
- `query_string`: The query string of the request: `foo=bar` or a blank string `''`
|
||||||
- `uri_template`: Template for matching route handler: `/posts/<id>/`
|
- `uri_template`: Template for matching route handler: `/posts/<id>/`
|
||||||
|
- `token`: The value of Authorization header: `Basic YWRtaW46YWRtaW4=`
|
||||||
|
|
||||||
|
|
||||||
## Accessing values using `get` and `getlist`
|
## Accessing values using `get` and `getlist`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user