[python] add socket_options to configuration for the rest client (#7795)

* [python] add socket_options to configuration for the rest client

* (python-experimental) add socket_options to configuration for the rest client

This mirrors work done on the python generator

* (python-experimental) add test to cover socket_options is passed on from configuration

Co-authored-by: steve brazier <steve.brazier@trioptima.com>
This commit is contained in:
Steve B
2020-10-28 02:22:28 +01:00
committed by GitHub
parent 44f5f2bdd8
commit ea2cdd23c2
20 changed files with 120 additions and 15 deletions

View File

@@ -226,6 +226,10 @@ conf = petstore_api.Configuration(
# Enable client side validation
self.client_side_validation = True
self.socket_options = None
"""Options to pass down to the underlying urllib3 socket
"""
def __deepcopy__(self, memo):
cls = self.__class__
result = cls.__new__(cls)