FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/gitlab/graphql/transport.py at feat/graphql · python-gitlab/python-gitlab · GitHub
python-gitlab
python-gitlab
Repository navigation
Code
Issues
16
(16)
Pull requests
15
(15)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
gitlab
/
graphql
/
transport.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (17 loc) · 740 Bytes
Breadcrumbs
python-gitlab
/
gitlab
/
graphql
/
transport.py
Copy path
File metadata and controls
25 lines (17 loc) · 740 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from
typing
import
Any
import
requests
from
gql
.
transport
.
requests
import
RequestsHTTPTransport
class
GitlabSyncTransport
(
RequestsHTTPTransport
):
"""A gql requests transport that reuses an existing requests.Session.
By default, gql's requests transport does not have a keep-alive session
and does not enable providing your own session.
This transport lets us provide and close our session on our own.
For details, see https://github.com/graphql-python/gql/issues/91.
"""
def
__init__
(
self
,
*
args
:
Any
,
session
:
requests
.
Session
,
**
kwargs
:
Any
):
super
().
__init__
(
*
args
,
**
kwargs
)
self
.
session
=
session
def
connect
(
self
)
->
None
:
pass
def
close
(
self
)
->
None
:
pass
Back
|
FazBrowse Home
|
New Git URL