Changelog¶
20.4.1 (2020-04-16)¶
Bugfixes¶
Correct a typo in the treq 20.4.0 package metadata that prevented upload to PyPI (pypa/twine#589)
20.4.0 (2020-04-16)¶
Bugfixes¶
treq.client.HTTPClient.request()
and its aliases no longer raiseUnicodeEncodeError
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)
Improved Documentation¶
The treq documentation has been revised to emphasize use of
treq.client.HTTPClient
over the module-level convenience functions in thetreq
module. (#276)
20.3.0 (2020-03-15)¶
Bugfixes¶
treq.testing.RequestTraversalAgent
now passes its memory reactor to thetwisted.web.server.Site
it creates, preventing theSite
from polluting the global reactor. (#225)treq.testing
no longer generates deprecation warnings abouttwisted.test.proto_helpers.MemoryReactor
. (#253)
Improved Documentation¶
The
download_file.py
example 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 asstr
. (#237)