2023-09-23 22:00:31 +02:00
|
|
|
# flake8: noqa: F401
|
2023-10-14 01:33:00 +02:00
|
|
|
import warnings
|
|
|
|
|
2023-07-15 12:25:23 +02:00
|
|
|
from .common import (
|
|
|
|
HEADRequest,
|
|
|
|
PUTRequest,
|
|
|
|
Request,
|
|
|
|
RequestDirector,
|
|
|
|
RequestHandler,
|
|
|
|
Response,
|
|
|
|
)
|
|
|
|
|
|
|
|
# isort: split
|
|
|
|
# TODO: all request handlers should be safely imported
|
|
|
|
from . import _urllib
|
2023-10-14 01:33:00 +02:00
|
|
|
from ..utils import bug_reports_message
|
|
|
|
|
|
|
|
try:
|
|
|
|
from . import _requests
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
except Exception as e:
|
|
|
|
warnings.warn(f'Failed to import "requests" request handler: {e}' + bug_reports_message())
|
2023-11-20 09:04:04 +01:00
|
|
|
|
|
|
|
try:
|
|
|
|
from . import _websockets
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
except Exception as e:
|
|
|
|
warnings.warn(f'Failed to import "websockets" request handler: {e}' + bug_reports_message())
|
2024-03-17 04:52:38 +01:00
|
|
|
|
|
|
|
try:
|
2024-06-12 01:09:58 +02:00
|
|
|
from . import _curlcffi
|
2024-03-17 04:52:38 +01:00
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
except Exception as e:
|
|
|
|
warnings.warn(f'Failed to import "curl_cffi" request handler: {e}' + bug_reports_message())
|