0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00
yt-dlp/yt_dlp/networking
coletdjnz 227bf1a33b
[networking] Rewrite architecture (#2861)
New networking interface consists of a `RequestDirector` that directs
each `Request` to appropriate `RequestHandler` and returns the
`Response` or raises `RequestError`. The handlers define adapters to
transform its internal Request/Response/Errors to our interfaces.

User-facing changes:
- Fix issues with per request proxies on redirects for urllib
- Support for `ALL_PROXY` environment variable for proxy setting
- Support for `socks5h` proxy
   - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093
- Raise error when using `https` proxy instead of silently converting it to `http`

Authored by: coletdjnz
2023-07-15 16:18:35 +05:30
..
__init__.py [networking] Rewrite architecture (#2861) 2023-07-15 16:18:35 +05:30
_helper.py [networking] Rewrite architecture (#2861) 2023-07-15 16:18:35 +05:30
_urllib.py [networking] Rewrite architecture (#2861) 2023-07-15 16:18:35 +05:30
common.py [networking] Rewrite architecture (#2861) 2023-07-15 16:18:35 +05:30
exceptions.py [networking] Rewrite architecture (#2861) 2023-07-15 16:18:35 +05:30