File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,8 +61,11 @@ class ConnectionConfig(BaseModel):
6161 http2 : bool = False
6262 # a path to a cert file or false to turn off verification
6363 verify : Optional [Union [bool , str ]] = None
64+
6465 httpx_class : Optional [Type [httpx .Client ]] = httpx .Client
66+ httpx_extra_kwargs : Optional [Dict [str , Any ]] = {}
6567 async_httpx_class : Optional [Type [httpx .AsyncClient ]] = httpx .AsyncClient
68+ async_httpx_extra_kwargs : Optional [Dict [str , Any ]] = {}
6669
6770
6871class Login (BaseModel ):
Original file line number Diff line number Diff line change @@ -259,7 +259,8 @@ def async_http_client(
259259 max_attempts = config .max_attempts ,
260260 )
261261 return config .async_httpx_class (timeout = config .timeout ,
262- transport = transport )
262+ transport = transport ,
263+ ** config .async_httpx_extra_kwargs )
263264
264265
265266def http_client (
@@ -285,7 +286,9 @@ def http_client(
285286 ),
286287 max_attempts = config .max_attempts ,
287288 )
288- return config .httpx_class (timeout = config .timeout , transport = transport )
289+ return config .httpx_class (timeout = config .timeout ,
290+ transport = transport ,
291+ ** config .httpx_extra_kwargs )
289292
290293
291294def build_url (base_api_url : str , path : str , query_dict : Optional [dict ]):
Original file line number Diff line number Diff line change 11[project ]
22name = " libsimba"
3- version = " 1.7.3 "
3+ version = " 1.7.4 "
44description = " libsimba is a library simplifying the use of SIMBAChain Blocks APIs."
55authors = [
66 { name = " SIMBA Chain Inc." }
You can’t perform that action at this time.
0 commit comments