未验证 提交 03f13800 编写于 作者: B Ben Darnell 提交者: GitHub

Merge pull request #2296 from bdarnell/docs

docs: Small updates
...@@ -244,7 +244,7 @@ class IOLoop(Configurable): ...@@ -244,7 +244,7 @@ class IOLoop(Configurable):
Previously, this method would clear the `IOLoop` used as Previously, this method would clear the `IOLoop` used as
the global singleton by `IOLoop.instance()`. Now that the global singleton by `IOLoop.instance()`. Now that
`instance()` is an alias for `current()`, `instance()` is an alias for `current()`,
`clear_instance()` is an alias for `clear_instance()`. `clear_instance()` is an alias for `clear_current()`.
.. deprecated:: 5.0 .. deprecated:: 5.0
......
...@@ -1220,6 +1220,11 @@ class RequestHandler(object): ...@@ -1220,6 +1220,11 @@ class RequestHandler(object):
See http://en.wikipedia.org/wiki/Cross-site_request_forgery See http://en.wikipedia.org/wiki/Cross-site_request_forgery
This property is of type `bytes`, but it contains only ASCII
characters. If a character string is required, there is no
need to base64-encode it; just decode the byte string as
UTF-8.
.. versionchanged:: 3.2.2 .. versionchanged:: 3.2.2
The xsrf token will now be have a random mask applied in every The xsrf token will now be have a random mask applied in every
request, which makes it safe to include the token in pages request, which makes it safe to include the token in pages
......
...@@ -17,7 +17,6 @@ the protocol (known as "draft 76") and are not compatible with this module. ...@@ -17,7 +17,6 @@ the protocol (known as "draft 76") and are not compatible with this module.
""" """
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
# Author: Jacob Kristhammar, 2010
import base64 import base64
import collections import collections
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册