百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

isahc

> 开发工具
开源

一个实用的 HTTP 客户端,使用起来很有趣。

782 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个实用的 HTTP 客户端,使用起来很有趣。

Isahc

向 Isahc (发音像《伊萨克》) 致以问候,这是一个实用的 HTTP 客户端,使用起来很有趣。

关键特性

  • 完全支持 HTTP/1.1 和 HTTP/2.
  • 可配置的请求超时、重定向策略、Unix 套接字等众多设置。
  • 提供人体工程学设计的同步 API 以及不依赖运行时的异步 API,支持 [async/await]。
  • 完全异步核心,支持请求和响应体的增量读写以及连接多路复用。
  • 会话和 Cookie 持久性。
  • 在丢弃时自动取消请求。
  • 使用 [http] 容器作为请求和响应的接口。

Isahc 是什么?

Isahc 是一个缩写,代表 Incredible Streaming Asynchronous HTTP Client,正如名称所示,它是一个用于 [Rust] 语言的异步 HTTP 客户端。它在内部使用 [libcurl] 作为 HTTP 引擎,并在顶层提供了易于使用的 API,可与 Rust 习惯语融合。

请查看 [文档] 了解 Isahc 能做什么以及如何使用它。为了帮助您开始使用,这里有一个非常简单、完整的示例,它会从 https://example.org: 和 ```rust use isahc::prelude::*;

fn main() -> Result { // Send a GET request and wait for the response headers. // Must be mut so we can read the response body. let mut response = isahc::get("https://example.org")?;

// Print some basic info about the response to standard output.
println!("Status: {}", response.status());
println!("Headers: {:#?}", response.headers());

// Read the response body as text into a string and print it.
print!("{}", response.text()?);

Ok(())

}


[][documentation]

Issues· 33 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rusthttphttp-clienthttp2https

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具