DioxusLabs/blitz

Add `ureq` backend to `blitz-net`

Offen

#181 geöffnet am 20.01.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (152 Forks)github user discovery
good first issue

Repository-Metriken

Stars
 (3.639 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7h 25m) (50 gemergte PRs in 30 T)

Beschreibung

The motivation for this is primarily as a binary size optimisation for apps that want networking but do not need 100s of connections and do not otherwise need tokio or an async executor in their stack.

The implementation should:

  • Be part of the existing blitz-net crate with feature flags for each backend
  • Use the new 3.x version of ureq
  • Split the reqwest and ureq implementations in separate files/modules
  • Use a threadpool to allow for multiple concurrent requests
  • Implement the blitz_net::get_text method as well as blitz_net::Provider

Contributor Guide