2023-09-23 16:00:31 -04:00
|
|
|
# flake8: noqa: F401
|
2023-10-13 19:33:00 -04:00
|
|
|
import warnings
|
|
|
|
|
2023-07-15 06:25:23 -04: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 19:33:00 -04: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 03:04:04 -05: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())
|
|
|
|
|