Tornado Web Server 2.0 RC Released
Major changes:
- Automatically add escape characters when outputting to templates
- The standard implementation of AsyncHTTPClient is now simple_httpclient.
- Python 3.2 support.
Minor changes:
- New template tags:
- {% autoescape ...%} control for adding escape characters
- {% raw ...%} remove escape characters
- {% module ...%} for calling UIModules - {% module Template (path, ** kwargs)%} can now be used to call another template with an independent namespace
- All IOStream callbacks calls are now made directly to IOLoop via add_callback.
- HTTPServer now supports IPv6. To disable it, pass the family = socket.AF_INET parameter to HTTPServer.bind ().
- HTTPClient now supports IPv6 if request is set to allow_ipv6 = True
- RequestHandlers can now use encodings other than utf-8 for the request parameter by overriding decode_argument ()
- Improved performance, especially for applications that use many IOLoop timeouts
- The HTTP OPTIONS method now does not require an XSRF token.
- Output to JSON (RequestHandler.write (dict)) now sets the Content-Type application / json
- Etag calculation can now be configured or disabled by overriding RequestHandler.compute_etag
- USE_SIMPLE_HTTPCLIENT is no longer supported, use AsyncHTTPClient.configure instead.
We take on
GitHub
')
Source: https://habr.com/ru/post/121185/
All Articles