2023-09-23 20:00:31 +00:00
|
|
|
# flake8: noqa: F401
|
2023-10-13 23:33:00 +00:00
|
|
|
import warnings
|
|
|
|
|
2023-07-15 10:25:23 +00: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 23:33:00 +00: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 08:04:04 +00: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())
|