Sprockets.mixins.http

Latest version: v2.6.0

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

Scan your dependencies

Page 2 of 4

2.3.0

--------------------
- 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
setting ``simplify_error_response`` to False.
- Fix compile-time setting of default argument values in ``http_fetch``.

2.2.1

---------------------
- Remove the lrucache on response body due to a bug in behavior

2.2.0

---------------------
- Add handling of ``tornado.httpclient.HTTPTimeoutError`` and
``tornado.httpclient.HTTPStreamClosedError`` exceptions
- Fix documentation builds
- Update documentation links to readthedocs.io

2.1.0

--------------------
- Cast the ``url`` parameter of ``http_fetch`` to a string.
Allows for native use of URL abstractions like `yarl <https://yarl.readthedocs.io/en/latest/>`_.

2.0.1

--------------------
- Fix a bug with the rejected consumer User-Agent behavior

2.0.0

--------------------
- Refactor the HTTPResponse to a stand-alone class
- Add ``history`` attribute of the response with all response objects
- Add ``links`` attribute of the response with the parsed link header if set
- Add ``exceptions`` attribute with stack of exceptions returned as responses
- Add ``dont_retry`` as argument to ``http_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

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.