Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Jun 02:46
· 1 commit to main since this release
3c63629

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 public await API is unchanged; on_sse_event, on_progress, and on_status_changed callbacks are automatically marshaled back to the main thread, and every callback fires before the Response resolves. 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_port and https_proxy_host / https_proxy_port options, so http:// and https:// 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_port pair has been replaced by per-scheme options. Migrate by setting http_proxy_host / http_proxy_port for http:// requests and https_proxy_host / https_proxy_port for https:// requests. The previous fields applied one proxy to both schemes; set both new pairs to the same host/port to preserve that behavior.