Tornado 1.0 新特性¶

July 22, 2010¶

  1. We are pleased to announce the release of Tornado 1.0, available
  2. from
  3. https://github.com/downloads/facebook/tornado/tornado-1.0.tar.gz.
  4. There have been many changes since version 0.2; here are some of
  5. the highlights:
  6.  
  7. New features:
  8. * Improved support for running other WSGI applications in a
  9. Tornado server (tested with Django and CherryPy)
  10. * Improved performance on Mac OS X and BSD (kqueue-based IOLoop),
  11. and experimental support for win32
  12. * Rewritten AsyncHTTPClient available as
  13. tornado.httpclient.AsyncHTTPClient2 (this will become the
  14. default in a future release)
  15. * Support for standard .mo files in addition to .csv in the locale
  16. module
  17. * Pre-forking support for running multiple Tornado processes at
  18. once (see HTTPServer.start())
  19. * SSL and gzip support in HTTPServer
  20. * reverse_url() function refers to urls from the Application
  21. config by name from templates and RequestHandlers
  22. * RequestHandler.on_connection_close() callback is called when the
  23. client has closed the connection (subject to limitations of the
  24. underlying network stack, any proxies, etc)
  25. * Static files can now be served somewhere other than /static/ via
  26. the static_url_prefix application setting
  27. * URL regexes can now use named groups ("(?P<name>)") to pass
  28. arguments to get()/post() via keyword instead of position
  29. * HTTP header dictionary-like objects now support multiple values
  30. for the same header via the get_all() and add() methods.
  31. * Several new options in the httpclient module, including
  32. prepare_curl_callback and header_callback
  33. * Improved logging configuration in tornado.options.
  34. * UIModule.html_body() can be used to return html to be inserted
  35. at the end of the document body.
  36.  
  37. Backwards-incompatible changes:
  38. * RequestHandler.get_error_html() now receives the exception
  39. object as a keyword argument if the error was caused by an
  40. uncaught exception.
  41. * Secure cookies are now more secure, but incompatible with
  42. cookies set by Tornado 0.2. To read cookies set by older
  43. versions of Tornado, pass include_name=False to
  44. RequestHandler.get_secure_cookie()
  45. * Parameters passed to RequestHandler.get/post() by extraction
  46. from the path now have %-escapes decoded, for consistency with
  47. the processing that was already done with other query
  48. parameters.
  49.  
  50. Many thanks to everyone who contributed patches, bug reports, and
  51. feedback that went into this release!
  52.  
  53. -Ben

原文:

https://tornado-zh-cn.readthedocs.io/zh_CN/latest/releases/v1.0.0.html