.. currentmodule:: treq
- The url parameter of :meth:`HTTPClient.request()` (and shortcuts like :meth:`~HTTPClient.get()`) now accept :class:`hyperlink.DecodedURL` and :class:`hyperlink.URL` in addition to :class:`str` and :class:`bytes`. (#212)
- Compatibility with the upcoming Twisted 20.9.0 release (#290).
- An example of sending and receiving JSON has been added. (#278)
- Correct a typo in the treq 20.4.0 package metadata that prevented upload to PyPI (pypa/twine#589)
- Support for Python 3.8 and PyPy3: treq is now tested with these interpreters. (#271)
- treq.client.HTTPClient.request() and its aliases no longer raise UnicodeEncodeError when passed a Unicode url and non-empty params. Now the URL and query parameters are concatenated as documented. (#264)
- In treq 20.3.0 the params argument didn't accept parameter names or values that contain the characters
&or#. Now these characters are properly escaped. (#282)
- The treq documentation has been revised to emphasize use of treq.client.HTTPClient over the module-level convenience functions in the treq module. (#276)
- Python 3.7 support. (#228)
- treq.testing.RequestTraversalAgent now passes its memory reactor to the twisted.web.server.Site it creates, preventing the
Sitefrom polluting the global reactor. (#225) - treq.testing no longer generates deprecation warnings about
twisted.test.proto_helpers.MemoryReactor. (#253)
- The
download_file.pyexample has been updated to do a streaming download with unbuffered=True. (#233) - The agent parameter to treq.request() has been documented. (#235)
- The type of the headers element of a response tuple passed to treq.testing.RequestSequence is now correctly documented as str. (#237)
- Drop support for Python 3.4. (#240)