mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 05:13:21 +00:00
8a8b54523a
Adds support for HTTPS proxies and persistent connections (keep-alive) Closes https://github.com/yt-dlp/yt-dlp/issues/1890 Resolves https://github.com/yt-dlp/yt-dlp/issues/4070 Resolves https://github.com/ytdl-org/youtube-dl/issues/32549 Resolves https://github.com/ytdl-org/youtube-dl/issues/14523 Resolves https://github.com/ytdl-org/youtube-dl/issues/13734 Authored by: coletdjnz, Grub4K, bashonly
24 lines
477 B
Python
24 lines
477 B
Python
# flake8: noqa: F401
|
|
import warnings
|
|
|
|
from .common import (
|
|
HEADRequest,
|
|
PUTRequest,
|
|
Request,
|
|
RequestDirector,
|
|
RequestHandler,
|
|
Response,
|
|
)
|
|
|
|
# isort: split
|
|
# TODO: all request handlers should be safely imported
|
|
from . import _urllib
|
|
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())
|