/
opt
/
imh-python
/
lib
/
python3.9
/
site-packages
/
kombu
/
asynchronous
/
http
/
/opt/imh-python/lib/python3.9/site-packages/kombu/asynchronous/http
mkdir
upload
Name
Size
Mode
Actions
__pycache__/
-
0755
rm
base.py
9795
0644
edit
dl
rm
urllib3_client.py
6469
0644
edit
dl
rm
__init__.py
796
0644
edit
dl
rm
Edit:
/opt/imh-python/lib/python3.9/site-packages/kombu/asynchronous/http/__init__.py
(796B)
from __future__ import annotations from kombu.asynchronous import get_event_loop from kombu.asynchronous.http.base import BaseClient, Headers, Request, Response from kombu.asynchronous.hub import Hub __all__ = ('Client', 'Headers', 'Response', 'Request', 'get_client') def Client(hub: Hub | None = None, **kwargs: int) -> BaseClient: """Create new HTTP client.""" from .urllib3_client import Urllib3Client return Urllib3Client(hub, **kwargs) def get_client(hub: Hub | None = None, **kwargs: int) -> BaseClient: """Get or create HTTP client bound to the current event loop.""" hub = hub or get_event_loop() try: return hub._current_http_client except AttributeError: client = hub._current_http_client = Client(hub, **kwargs) return client
Save
cmd:
run