1 parent
df99b6ea7f
commit
d146f11f02
63 files changed
+8331
-2709
No files matched your search
@@ -41,6 +41,15 @@ namespace Echoion::Core
|
||||
[[nodiscard]] Api::Result<Void::Net::Response>
|
||||
request(const Void::Net::Request& req) override;
|
||||
|
||||
// GET that never uses the configured proxy and does not retry —
|
||||
// for endpoints that must be reached directly and cheaply
|
||||
// (Invidious/Piped instance probes and API calls, public-IP
|
||||
// detection). Callers implement their own fallback across
|
||||
// instances, so retrying a dead one is counterproductive.
|
||||
[[nodiscard]] Api::Result<Void::Net::Response>
|
||||
getDirect(std::string_view url,
|
||||
const std::vector<Void::Net::Header>& headers = {});
|
||||
|
||||
// Proxy configuration
|
||||
void setProxy(
|
||||
const std::optional<Void::Net::ProxyConfig>& proxy) override;
|
||||
|
||||
Reference in new issue
Block a user