 Tornado 5.1 DocumentationContents 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 Installation 9 5 Documentation 11 5.1 User’s guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation CHAPTER 5 Documentation This documentation is also available in PDF and Epub formats. 5.1 User’s guide 5.1.1 Introduction Tornado is a Python web framework and asynchronous networking library fetch_coroutine(url): http_client = AsyncHTTPClient() response = await http_client.fetch(url) return response.body 5.1. User’s guide 13 Tornado Documentation, Release 5.1.1 Native vs decorated coroutines Python 3.50 码力 | 243 页 | 895.80 KB | 1 年前3 Tornado 5.1 DocumentationContents 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 Installation 9 5 Documentation 11 5.1 User’s guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation CHAPTER 5 Documentation This documentation is also available in PDF and Epub formats. 5.1 User’s guide 5.1.1 Introduction Tornado is a Python web framework and asynchronous networking library fetch_coroutine(url): http_client = AsyncHTTPClient() response = await http_client.fetch(url) return response.body 5.1. User’s guide 13 Tornado Documentation, Release 5.1.1 Native vs decorated coroutines Python 3.50 码力 | 243 页 | 895.80 KB | 1 年前3
 Tornado 5.1 Documentationutilities Frequently Asked Questions Release notes What’s new in Tornado 5.1.1 What’s new in Tornado 5.1 What’s new in Tornado 5.0.2 What’s new in Tornado 5.0.1 What’s new in Tornado 5.0 What’s new in Tornado Changed in version 4.0: Now returns a Future if no callback is given. Deprecated since version 5.1: The callback argument is deprecated and will be removed in Tornado 6.0. RequestHandler.finish(chunk=None) and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name, **kwargs) Renders the0 码力 | 359 页 | 347.32 KB | 1 年前3 Tornado 5.1 Documentationutilities Frequently Asked Questions Release notes What’s new in Tornado 5.1.1 What’s new in Tornado 5.1 What’s new in Tornado 5.0.2 What’s new in Tornado 5.0.1 What’s new in Tornado 5.0 What’s new in Tornado Changed in version 4.0: Now returns a Future if no callback is given. Deprecated since version 5.1: The callback argument is deprecated and will be removed in Tornado 6.0. RequestHandler.finish(chunk=None) and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name, **kwargs) Renders the0 码力 | 359 页 | 347.32 KB | 1 年前3
 Tornado 6.1 Documentation
the git repository as well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 if compatibility with Python 2.7 is required). The following optional packages may be useful: • pycurl and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs) → Future[None] same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs)0 码力 | 245 页 | 904.24 KB | 1 年前3 Tornado 6.1 Documentation
the git repository as well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 if compatibility with Python 2.7 is required). The following optional packages may be useful: • pycurl and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs) → Future[None] same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs)0 码力 | 245 页 | 904.24 KB | 1 年前3
 Tornado 6.0 Documentation
the git repository as well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 if compatibility with Python 2.7 is required). The following optional packages may be useful: • pycurl and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs:0 码力 | 245 页 | 885.76 KB | 1 年前3 Tornado 6.0 Documentation
the git repository as well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 if compatibility with Python 2.7 is required). The following optional packages may be useful: • pycurl and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs:0 码力 | 245 页 | 885.76 KB | 1 年前3
 Tornado 6.1 Documentation
well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 [https://www.tornadoweb.org/en/branch5.1/] if compatibility with Python 2.7 is required). The following optional packages What’s new in Tornado 6.0.1 What’s new in Tornado 6.0 What’s new in Tornado 5.1.1 What’s new in Tornado 5.1 What’s new in Tornado 5.0.2 What’s new in Tornado 5.0.1 What’s new in Tornado 5.0 What’s new in Tornado and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs) → Future[None][source]0 码力 | 931 页 | 708.03 KB | 1 年前3 Tornado 6.1 Documentation
well. Prerequisites: Tornado 6.0 requires Python 3.5.2 or newer (See Tornado 5.1 [https://www.tornadoweb.org/en/branch5.1/] if compatibility with Python 2.7 is required). The following optional packages What’s new in Tornado 6.0.1 What’s new in Tornado 6.0 What’s new in Tornado 5.1.1 What’s new in Tornado 5.1 What’s new in Tornado 5.0.2 What’s new in Tornado 5.0.1 What’s new in Tornado 5.0 What’s new in Tornado and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs) → Future[None][source]0 码力 | 931 页 | 708.03 KB | 1 年前3
 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.2 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 260 页 | 1.06 MB | 1 年前3 Tornado 6.2 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 260 页 | 1.06 MB | 1 年前3
 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3 Tornado 6.4 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.3 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 264 页 | 1.06 MB | 1 年前3 Tornado 6.3 Documentation
and raises an error if the connection is closed before all data can be sent. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render(template_name: str, **kwargs: Any) → same semantics as the one returned by finish. Awaiting this Future is optional. Changed in version 5.1: Now returns a Future instead of None. RequestHandler.render_string(template_name: str, **kwargs: tunnel over an HTTP handshake. This method is only supported when HTTP/1.1 is used. New in version 5.1. RequestHandler.get_browser_locale(default: str = 'en_US') → Locale Determines the user’s locale0 码力 | 264 页 | 1.06 MB | 1 年前3
共 18 条
- 1
- 2














