Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

ehttp

> 编程语言
Open source

Minimal Rust HTTP client for both native and WASM

387 stars0 likes0 views
WebsiteGitHub

About

Minimal Rust HTTP client for both native and WASM

ehttp: a minimal Rust HTTP client for both native and WASM

If you want to do HTTP requests and are targeting both native, web (WASM) and NodeJS (since v18.0), then this is the crate for you!

You can try the web demo here (works in any browser with WASM and WebGL support). Uses eframe.

Usage

rust
let request = ehttp::Request::get("https://www.example.com");
ehttp::fetch(request, move |result: ehttp::Result| {
    println!("Status code: {:?}", result.unwrap().status);
});

The given callback is called when the request is completed. You can communicate the results back to the main thread using something like:

  • Channels (e.g. std::sync::mpsc::channel).
  • Arc>
  • poll_promise::Promise
  • eventuals::Eventual
  • tokio::sync::watch::channel

There is also a streaming version under ehttp::fetch::streaming, hidden behind the streaming feature flag.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言