aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_networking.py
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Add tests for socks proxies (#7908)coletdjnz2023-08-251-16/+0
| | | Authored by: coletdjnz
* [networking] Add request handler preference framework (#7603)coletdjnz2023-08-041-4/+25
| | | | | | 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-3/+5
|
* [networking] Remove dot segments during URL normalization (#7662)coletdjnz2023-07-281-0/+21
| | | | | | | 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/+5
| | | Authored by: coletdjnz
* [test] Fix `httplib_validation_errors` test for old Python versions (#7677)coletdjnz2023-07-241-15/+24
| | | | | Fixes https://github.com/yt-dlp/yt-dlp/issues/7674 Authored by: coletdjnz
* [networking] Add strict Request extension checking (#7604)coletdjnz2023-07-231-18/+36
| | | | Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* [networking] Fix `--legacy-server-connect` (#7645)bashonly2023-07-201-1/+1
| | | | | Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
* [networking] Fix POST requests with zero-length payloads (#7648)bashonly2023-07-201-0/+11
| | | | | Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-12/+15
| | | | Authored by: coletdjnz, pukkandan
* [networking] Rewrite architecture (#2861)coletdjnz2023-07-151-262/+1099
| | | | | | | | | | | | | | | | 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
* [networking] Add module (#2861)pukkandan2023-07-151-0/+531
No actual changes - code is only moved around