File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,9 @@ HTTP requests to the Gitlab servers.
253
253
You can provide your own ``Session `` object with custom configuration when
254
254
you create a ``Gitlab `` object.
255
255
256
+ Proxy configuration
257
+ -------------------
258
+
256
259
The following sample illustrates how to define a proxy configuration when using
257
260
python-gitlab:
258
261
@@ -267,3 +270,23 @@ python-gitlab:
267
270
' http' : os.environ.get(' http_proxy' ),
268
271
}
269
272
gl = gitlab.gitlab(url, token, api_version = 4 , session = session)
273
+
274
+ Reference:
275
+ http://docs.python-requests.org/en/master/user/advanced/#proxies
276
+
277
+ Client side certificate
278
+ -----------------------
279
+
280
+ The following sample illustrates how to use a client-side certificate:
281
+
282
+ .. code-block :: python
283
+
284
+ import gitlab
285
+ import requests
286
+
287
+ session = requests.Session()
288
+ s.cert = (' /path/to/client.cert' , ' /path/to/client.key' )
289
+ gl = gitlab.gitlab(url, token, api_version = 4 , session = session)
290
+
291
+ Reference:
292
+ http://docs.python-requests.org/en/master/user/advanced/#client-side-certificates
You can’t perform that action at this time.
0 commit comments