@@ -72,6 +72,7 @@ def __init__(
72
72
base_url : str | httpx .URL | None = None ,
73
73
timeout : Union [float , Timeout , None , NotGiven ] = NOT_GIVEN ,
74
74
max_retries : int = DEFAULT_MAX_RETRIES ,
75
+ verify : httpx ._types .VerifyTypes = True ,
75
76
default_headers : Mapping [str , str ] | None = None ,
76
77
default_query : Mapping [str , object ] | None = None ,
77
78
# Configure a custom httpx client. See the [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
@@ -114,6 +115,7 @@ def __init__(
114
115
base_url = base_url ,
115
116
max_retries = max_retries ,
116
117
timeout = timeout ,
118
+ verify = verify ,
117
119
http_client = http_client ,
118
120
custom_headers = default_headers ,
119
121
custom_query = default_query ,
@@ -165,6 +167,7 @@ def copy(
165
167
timeout : float | Timeout | None | NotGiven = NOT_GIVEN ,
166
168
http_client : httpx .Client | None = None ,
167
169
max_retries : int | NotGiven = NOT_GIVEN ,
170
+ verify : httpx ._types .VerifyTypes = None ,
168
171
default_headers : Mapping [str , str ] | None = None ,
169
172
set_default_headers : Mapping [str , str ] | None = None ,
170
173
default_query : Mapping [str , object ] | None = None ,
@@ -200,6 +203,7 @@ def copy(
200
203
timeout = self .timeout if isinstance (timeout , NotGiven ) else timeout ,
201
204
http_client = http_client ,
202
205
max_retries = max_retries if is_given (max_retries ) else self .max_retries ,
206
+ verify = verify or self .verify ,
203
207
default_headers = headers ,
204
208
default_query = params ,
205
209
** _extra_kwargs ,
@@ -270,6 +274,7 @@ def __init__(
270
274
base_url : str | httpx .URL | None = None ,
271
275
timeout : Union [float , Timeout , None , NotGiven ] = NOT_GIVEN ,
272
276
max_retries : int = DEFAULT_MAX_RETRIES ,
277
+ verify : httpx ._types .VerifyTypes = True ,
273
278
default_headers : Mapping [str , str ] | None = None ,
274
279
default_query : Mapping [str , object ] | None = None ,
275
280
# Configure a custom httpx client. See the [httpx documentation](https://www.python-httpx.org/api/#asyncclient) for more details.
@@ -312,6 +317,7 @@ def __init__(
312
317
base_url = base_url ,
313
318
max_retries = max_retries ,
314
319
timeout = timeout ,
320
+ verify = verify ,
315
321
http_client = http_client ,
316
322
custom_headers = default_headers ,
317
323
custom_query = default_query ,
@@ -363,6 +369,7 @@ def copy(
363
369
timeout : float | Timeout | None | NotGiven = NOT_GIVEN ,
364
370
http_client : httpx .AsyncClient | None = None ,
365
371
max_retries : int | NotGiven = NOT_GIVEN ,
372
+ verify : httpx ._types .VerifyTypes = None ,
366
373
default_headers : Mapping [str , str ] | None = None ,
367
374
set_default_headers : Mapping [str , str ] | None = None ,
368
375
default_query : Mapping [str , object ] | None = None ,
@@ -398,6 +405,7 @@ def copy(
398
405
timeout = self .timeout if isinstance (timeout , NotGiven ) else timeout ,
399
406
http_client = http_client ,
400
407
max_retries = max_retries if is_given (max_retries ) else self .max_retries ,
408
+ verify = verify or self .verify ,
401
409
default_headers = headers ,
402
410
default_query = params ,
403
411
** _extra_kwargs ,
0 commit comments