kithara-net
HTTP client with retry, timeout, and streaming. Wraps reqwest behind the Net trait, with a TimeoutNet decorator and a MockNet for tests.
Usage
use ;
use CancelToken;
let client = new;
let bytes = client.get_bytes.await?; // None = no extra headers
let created = client.post_bytes.await?; // POST bytes, read the response body
let stream = client.stream.await?;
Decorators compose via the NetExt extension trait: with_retry adds exponential-backoff retry, with_timeout wraps every call in TimeoutNet<N>.
Key Types
Integration
Used by kithara-file and kithara-hls for all HTTP operations. MockNet (behind the mock feature) enables deterministic testing without network access.
See CONTEXT.md for detailed contracts, invariants, and internals.