Responses

Latest version: v0.25.7

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

Scan your dependencies

Page 2 of 10

0.25.1

------

* Fixed tests failures during RPM package builds. See 706
* Fix mocked HEAD responses that have `Content-Length` set. See 712
* Fixed error messages when matches fail: inputs are not sorted or reformatted. See 704

0.25.0

------

* Added support for Python 3.12
* Fixed `matchers.header_matcher` not failing when a matched header is missing from the request. See 702

0.24.1

------

* Reverted overloads removal
* Added typing to `Call` attributes.
* Fix socket issues (see 693)

0.24.0

------

* Added `BaseResponse.calls` to access calls data of a separate mocked request. See 664
* Added `real_adapter_send` parameter to `RequestsMock` that will allow users to set
through which function they would like to send real requests
* Added support for re.Pattern based header matching.
* Added support for gzipped response bodies to `json_params_matcher`.
* Fix `Content-Type` headers issue when the header was duplicated. See 644
* Moved types-pyyaml dependency to `tests_requires`
* Removed Python3.7 support

0.23.3

------

* Allow urllib3>=1.25.10

0.23.2

------

> This release is the last to support Python 3.7

* Updated dependency to urllib3>=2 and requests>=2.30.0. See 635
* Fixed issue when custom adapters were sending only positional args. See 642
* Expose `unbound_on_send` method in `RequestsMock` class. This method returns new function
that is called by `RequestsMock` instead of original `send` method defined by any adapter.

Page 2 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.