aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/networking/common.py
AgeCommit message (Collapse)Author
2025-04-18[networking] Add PATCH request shortcut (#12884)doe1080
Authored by: doe1080
2025-03-03[networking] Add `keep_header_casing` extension (#11652)Simon Sawicki
Authored by: coletdjnz, Grub4K Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
2024-07-14[networking] Add `legacy_ssl` request extension (#10448)coletdjnz
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI. Also added couple cookie-related tests. Authored by: coletdjnz
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-05-18[test] Fix connect timeout test (#9906)coletdjnz
Fixes https://github.com/yt-dlp/yt-dlp/issues/9659 Authored by: coletdjnz
2024-05-04[networking] Add `extensions` attribute to `Response` (#9756)bashonly
CurlCFFIRH now provides an `impersonate` field in its responses' extensions Authored by: bashonly
2024-03-30[ie] Add extractor impersonate API (#9474)bashonly
Authored by: bashonly, Grub4K, pukkandan
2024-03-16[rh:curlcffi] Add support for `curl_cffi`coletdjnz
Authored by: coletdjnz, Grub4K, pukkandan, bashonly Co-authored-by: Simon Sawicki <contact@grub4k.xyz> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com>
2024-03-11[docs] Misc Cleanup (#8977)pukkandan
Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2024-03-10Improve 069b2aedae2279668b6051627a81fc4fbd9c146aSimon Sawicki
Authored by: Grub4k
2024-02-25Create `ydl._request_director` when neededpukkandan
2023-08-04[networking] Add request handler preference framework (#7603)coletdjnz
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>
2023-07-30[cleanup] Miscpukkandan
2023-07-28[networking] Remove dot segments during URL normalization (#7662)coletdjnz
This implements RFC3986 5.2.4 remove_dot_segments during the URL normalization process. Closes #3355, #6526 Authored by: coletdjnz
2023-07-27[networking] Ignore invalid proxies in env (#7704)coletdjnz
Authored by: coletdjnz
2023-07-23[networking] Add strict Request extension checking (#7604)coletdjnz
Authored by: coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-07-22[cleanup] Misc fixespukkandan
Closes #7528
2023-07-20[networking] Fix POST requests with zero-length payloads (#7648)bashonly
Bugfix for 227bf1a33be7b89cd7d44ad046844c4ccba104f4 Authored by: bashonly
2023-07-15[compat, networking] Deprecate old functions (#2861)coletdjnz
Authored by: coletdjnz, pukkandan
2023-07-15[networking] Rewrite architecture (#2861)coletdjnz
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