aiohttp 0.22.0 release
After long pause we proud to present new aiohttp major release.
The main changes:
- Fixed security issue with leaking cookies in client session: #799
- Added aiodns support: #819
- Added public api for testing: #900 #902 #914
- Added narrative tutorial
- Dropped features deprecated in 0.14 and 0.15 releases (more than year ago).
- multidict is spitted into separate library
- aiohttp now is published as linux wheels as well as old good gzipped tarball.
Full list of changes:
- Fix bug in serving static directory #803
- Fix command line arg parsing #797
- Fix a documentation chapter about cookie usage #790
- Handle empty body with gzipped encoding #758
- Support 451 Unavailable For Legal Reasons http status #697
- Fix Cookie share example and few small typos in docs #817
- UrlDispatcher.add_route with partial coroutine handler #814
- Optional support for aiodns #728
- Add ServiceRestart and TryAgainLater websocket close codes #828
- Fix prompt message for
web.run_app
#832 - Allow to pass None as a timeout value to disable timeout logic #834
- Fix leak of connection slot during connection erro #835
- Gunicorn worker with uvloop support
aiohttp.worker.GunicornUVLoopWebWorker
#878 - Don't send body in response to HEAD request #838
- Skip the preamble in MultipartReader #881
- Implement BasicAuth decode classmethod. #744
- Don't crash logger when transport is None #889
- Use a create_future compatibility wrapper instead of creating
Futures directly #896 - Add test utilities to aiohttp #902
- Improve Request.repr #875
- Skip DNS resolving if provided host is already an ip address #874
- Add headers to ClientSession.ws_connect #785
- Document that server can send pre-compressed data #906
- Don't add Content-Encoding and Transfer-Encoding if no body #891
- Add json() convenience methods to websocket message objects #897
- Add client_resp.raise_for_status() #908
- Implement cookie filter #799
- Include an example of middleware to handle error pages #909
- Fix error handling in StaticFileMixin #856
- Add mocked request helper #900
- Fix empty ALLOW Response header for cls based View #929
- Respect CONNECT method to implement a proxy server #847
- Add pytest_plugin #914
- Add tutorial
- Add backlog option to support more than 128 (default value in
"create_server" function) concurrent connections #892 - Allow configuration of header size limits #912
- Separate sending file logic from StaticRoute dispatcher #901
- Drop deprecated share_cookies connector option (BACKWARD INCOMPATIBLE)
- Drop deprecated support for tuple as auth paramter.
Use aiohttp.BasicAuth instead (BACKWARD INCOMPATIBLE) - Remove deprecated
request.payload
property, usecontent
instead.
(BACKWARD INCOMPATIBLE) - Drop all mentions about api changes in documentaion for versions
older than 0.16 - Allow to override default cookie jar #963
- Add manylinux wheel builds
- Dup a socket for sendfile usage #964
Thanks to all for contributions!