(self, configuration=None, header_name=None, header_value=None,
cookie=None, pool_threads=1)
| 66 | _pool = None |
| 67 | |
| 68 | def __init__(self, configuration=None, header_name=None, header_value=None, |
| 69 | cookie=None, pool_threads=1): |
| 70 | if configuration is None: |
| 71 | configuration = Configuration.get_default_copy() |
| 72 | self.configuration = configuration |
| 73 | self.pool_threads = pool_threads |
| 74 | |
| 75 | self.rest_client = rest.RESTClientObject(configuration) |
| 76 | self.default_headers = {} |
| 77 | if header_name is not None: |
| 78 | self.default_headers[header_name] = header_value |
| 79 | self.cookie = cookie |
| 80 | # Set default User-Agent. |
| 81 | self.user_agent = 'OpenAPI-Generator/36.0.2/python' |
| 82 | self.client_side_validation = configuration.client_side_validation |
| 83 | |
| 84 | def __enter__(self): |
| 85 | return self |
nothing calls this directly
no test coverage detected