Skip to content

Commit c4117e1

Browse files
committed
feat(async): Provide httpx client classes to gitlab clients
1 parent 4528543 commit c4117e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ def search(self, scope, search, **kwargs):
536536

537537

538538
class Gitlab(BaseGitlab):
539+
_httpx_client_class = httpx.Client
540+
539541
def auth(self):
540542
self.user = self._objects.CurrentUserManager(self).get()
541543

@@ -743,6 +745,8 @@ def http_put(self, path, query_data=None, post_data=None, files=None, **kwargs):
743745

744746

745747
class AsyncGitlab(BaseGitlab):
748+
_httpx_client_class = httpx.AsyncClient
749+
746750
async def auth(self):
747751
self.user = await self._objects.CurrentUserManager(self).get()
748752

0 commit comments

Comments
 (0)