//! Shared HTTP client construction.
use Duration;
use Client;
use crateEngineResult;
/// User agent sent with every request.
const USER_AGENT: &str = concat!;
/// Builds the single, shared HTTP client used by every phase.
///
/// The client uses rustls for TLS, keeps connections pooled per host so
/// parallel transfer workers can reuse sockets, and applies a connect
/// timeout only — transfer phases are bounded by their own deadlines, so a
/// total request timeout would cut healthy long-running streams.