We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1107f68 commit 5e60ddcCopy full SHA for 5e60ddc
1 file changed
pori_python/graphkb/util.py
@@ -99,6 +99,7 @@ def __init__(
99
password: str = '',
100
use_global_cache: bool = True,
101
cache_name: str = '',
102
+ **session_kwargs
103
):
104
"""
105
Docstring for __init__
@@ -114,16 +115,18 @@ def __init__(
114
115
cache_control=True,
116
allowable_methods=['GET', 'POST'],
117
ignored_parameters=['Authorization'],
118
119
)
120
else:
121
self.http = CustomSession(
122
cache_name,
123
124
125
126
127
128
- self.http = requests.Session()
129
+ self.http = requests.Session(**session_kwargs)
130
retries = Retry(
131
total=100,
132
connect=5,
0 commit comments