Delete NetworkClient's to_void_method/to_void_proxy/to_api_response bridge
and the Api::RetryConfig member; the client builds Void::Net::Request, sends
via Void::Net::HttpClient, returns Void::Net::Response, and retries via an
internal Void::Retry policy + retryable-status list.
Call sites updated to Void::Net member names: isSuccess()->ok(),
statusCode->status, getHeader()->header() (optional<string_view>),
isRedirect()->status range check; proxy isValid()->enabled(),
requiresAuth()->has_auth(), isSocks5()->kind == Kind::Socks5. Proxy fields
flow through YtDlpManager/AudioDecoder/MusicManager unchanged in spelling.
On-disk proxy shape is now Void::Net::ProxyConfig (kind: None/Http/Socks5);
config.example.json updated and proxy round-trip verified. Build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the per-call std::async OS-thread spawns in the blocking
fan-out/collect paths with a bounded Void::Concurrency::ThreadPool member,
giving thread reuse instead of an unbounded thread per request:
- YouTubeClient: getVideoInfoAsync, getPlaylistAsync, and the two playlist
resolution batches now submit to pool_. The std::future<T>/.get() join
semantics are unchanged, so control flow is identical.
- NetworkClient: getAsync/postAsync/requestAsync (and thus requestBatch)
submit to pool_.
populateShortenedUrls is deliberately left on std::async — it relies on
wide parallelism under a tight 5s budget, which a bounded pool would
throttle. Build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mechanically convert std::unexpected(Api::Error(ErrorCode::X, msg[, src]))
to Api::fail(ErrorCode::X, msg[, src]) across Core. Pure syntax; forwards of
existing errors (std::unexpected(x.error())) are unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the ~700-line hand-rolled HTTP stack (Boost.Beast/Asio client,
URL parsing, HTTP-CONNECT + SOCKS5 proxy handshakes, a bespoke 4-thread
packaged_task pool) with a thin adapter over Void::Net::HttpClient that
still implements Api::INetworkClient. Translates Api::HttpRequest/Response/
ProxyConfig <-> Void::Net types; retry/backoff stays on Void::Retry; async
methods use std::async. Link Void::Net.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>