2023-09-23 14:00:31 -06:00
|
|
|
# flake8: noqa: F401
|
2023-10-13 17:33:00 -06:00
|
|
|
import warnings
|
|
|
|
|
2023-07-15 04:25:23 -06: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-13 17:33:00 -06: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 01:04:04 -07: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-16 21:52:38 -06:00
|
|
|
|
|
|
|
try:
|
2024-06-11 17:09:58 -06:00
|
|
|
from . import _curlcffi
|
2024-03-16 21:52:38 -06:00
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
except Exception as e:
|
|
|
|
warnings.warn(f'Failed to import "curl_cffi" request handler: {e}' + bug_reports_message())
|