Releases: ChrisCrossCrash/c3-http-request
Releases · ChrisCrossCrash/c3-http-request
v0.2.0
Added
Options.use_threads— run the polling loop on a dedicated background thread that polls at OS speed instead of once per rendered frame, lowering latency for fast endpoints and keeping the main thread free during large or streaming downloads. The publicawaitAPI is unchanged;on_sse_event,on_progress, andon_status_changedcallbacks are automatically marshaled back to the main thread, and every callback fires before theResponseresolves. Falls back to the cooperative loop on export templates without thread support.- Separate HTTP and HTTPS proxy routing via the new
http_proxy_host/http_proxy_portandhttps_proxy_host/https_proxy_portoptions, sohttp://andhttps://requests can be routed through different proxies (or only one scheme proxied). - Benchmark suite under
examples/benchmark/(with a local test server) and BENCHMARK.md documenting cooperative vs. threaded throughput and latency. - Shared example assets (rotating monkey, on-screen output overlay) reused by both the demo and the benchmark.
Changed
- Breaking: the single
Options.proxy_host/Options.proxy_portpair has been replaced by per-scheme options. Migrate by settinghttp_proxy_host/http_proxy_portforhttp://requests andhttps_proxy_host/https_proxy_portforhttps://requests. The previous fields applied one proxy to both schemes; set both new pairs to the same host/port to preserve that behavior.