Sprockets.mixins.http

Latest version: v2.6.0

Safety actively analyzes 621444 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.6.0

--------------------
- Add support for ``Content-Type`` suffixes (ex. ``a/b+json``, ``x/y+msgpack``)
- Fix exception when ``self.correlation_id`` is ``None``

2.5.0

--------------------
- Change ``HTTPResponse.links`` to return empty list when ``Link`` header is not present
- Move ``X-Retry-Attempt`` header insertion into
:meth:`~sprockets.mixins.http.HTTPClientMixin._http_req_modify_for_retry`
hook. This is also needed for using the client with OAuth 1 servers.

2.4.1

--------------------
- 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 to
:meth:`~sprockets.mixins.http.HTTPClientMixin.http_fetch`

2.4.0

-------------------
- 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

-------------------
- Pass keyword parameters through to the underlying HTTPClient fetch method.
This enables niceties like streaming callback support

2.3.1

--------------------
- Address `27`_ by using the shortest appropriate timeout

.. _27: https://github.com/sprockets/sprockets.mixins.http/issues/27

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.