cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 33 forks source link

Injection for requests.Session #148

Closed andrewschenck closed 1 month ago

andrewschenck commented 7 months ago

This commit enables the optional injection of the requests.Session object wrapped by RestSession. Operations teams have use cases for modifying the underlying Session behavior, chief of which is to tweak the HTTP retry policy. Currently, we're monkey-patching our own Session object into the RestSession instance; with this PR, we (and other teams) would be able to perform the same thing without violating software contracts.

Author: Andrew Schenck aschenck@cisco.com

andrewschenck commented 7 months ago

See: https://github.com/cisco-en-programmability/dnacentersdk/issues/149

andrewschenck commented 7 months ago

149