aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/networking/common.py
Commit message (Collapse)AuthorAgeFilesLines
* [networking] Add request handler preference framework (#7603)coletdjnz2023-08-041-4/+36
| | | | | | Preference functions that take a request and a request handler instance can be registered to prioritize different request handlers per request. Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* [cleanup] Miscpukkandan2023-07-301-4/+5
|
* [networking] Remove dot segments during URL normalization (#7662)coletdjnz2023-07-281-3/+2
| | | | | | | This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
* [networking] Ignore invalid proxies in env (#7704)coletdjnz2023-07-271-3/+7
| | | Authored by: coletdjnz
* [networking] Add strict Request extension checking (#7604)coletdjnz2023-07-231-17/+17
| | | | Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* [cleanup] Misc fixespukkandan2023-07-221-1/+1
| | | | Closes #7528
* [networking] Fix POST requests with zero-length payloads (#7648)bashonly2023-07-201-1/+1
| | | | | Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-0/+6
| | | | Authored by: coletdjnz, pukkandan
* [networking] Rewrite architecture (#2861)coletdjnz2023-07-151-0/+522
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