Version History¶
2.6.0 Mar 07 2022¶
- Add support for
Content-Type
suffixes (ex.a/b+json
,x/y+msgpack
) - Fix exception when
self.correlation_id
isNone
2.5.0 Sep 16 2021¶
- Change
HTTPResponse.links
to return empty list whenLink
header is not present - Move
X-Retry-Attempt
header insertion into_http_req_modify_for_retry()
hook. This is also needed for using the client with OAuth 1 servers.
2.4.1 Nov 30 2020¶
- Make request retry timeout configurable
- Apply retry sleeping to all retried attempts
- Use an exponential backoff if
Retry-After
header is absent - Add
retry_timeout
parameter tohttp_fetch()
2.4.0 Nov 3 2020¶
- Fix serialization of empty request bodies.
- Rate limit 503s as well as 423s and 429s.
- Advertise & test support for Python 3.8 and 3.9.
2.3.3 Apr 8 2020¶
- Pass keyword parameters through to the underlying HTTPClient fetch method. This enables niceties like streaming callback support
2.3.0 Dec 9, 2019¶
- Added an option to control response body transformation for errors, i.e. HTTP
status code >= 400. By default, a JSON or otherwise structured response body
will be reduced down to its error
message
. That can be overridden by settingsimplify_error_response
to False. - Fix compile-time setting of default argument values in
http_fetch
.
2.2.0 Aug 29, 2019¶
- Add handling of
tornado.httpclient.HTTPTimeoutError
andtornado.httpclient.HTTPStreamClosedError
exceptions - Fix documentation builds
- Update documentation links to readthedocs.io
2.1.0 May 7, 2019¶
- Cast the
url
parameter ofhttp_fetch
to a string. Allows for native use of URL abstractions like yarl.
2.0.0 Apr 1, 2019¶
- Refactor the HTTPResponse to a stand-alone class
- Add
history
attribute of the response with all response objects - Addlinks
attribute of the response with the parsed link header if set - Addexceptions
attribute with stack of exceptions returned as responses - Add
dont_retry
as argument tohttp_fetch
method - Change logging level in a few places to a more appropriate level
- Add support for rejected consumers when auto-creating the
User-Agent
header - Add the netloc of a request to the log entry created when rate limited
- Use RequestHandler.settings instead of RequestHandler.application.settings
when auto-creating the
User-Agent
header for a Tornado request handler - Add test coverage of the Warning response header behavior