http
1,115
Stars
440
Forks
52
Watchers
384
Open Issues
BSD-3-Clause
许可证
Dart
语言
2014-12-17
创建时间
2026-11-07
最近更新
项目能做什么
用于在 Dart 中发起 HTTP 请求的可组合式 API。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[](https://github.com/dart-lang/http/actions?query=workflow%3A"Dart+CI"+branch%3Amaster) A composable, Future-based library for making HTTP requests. `package:http` contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser. ## Packages <!-- PKG_TABLE_START --> | Package | Description | Version | |---|---|---| | [cronet_http](pkgs/cronet_http/) | An Android Flutter plugin that provides access to the Cronet HTTP client. | [](https://pub.dev/packages/cronet_http) | | [cupertino_http](pkgs/cupertino_http/) | A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. | [](https://pub.dev/packages/cupertino_http) | | [flutter_http_example](pkgs/flutter_http_example/) | Demonstrates how to use package:http in a Flutter app. | — | | [http](pkgs/http/) | A composable, multi-platform, Future-based API for HTTP requests. | [](https://pub.dev/packages/http) | | [http2](pkgs/http2/) | A HTTP/2 implementation in Dart. | [](https://pub.dev/packages/http2) | | [http_client_conformance_tests](pkgs/http_client_conformance_tests/) | A library that tests whether implementations of package:http's `Client` class behave as expected. | — | | [http_multi_server](pkgs/http_multi_server/) | A dart:io HttpServer wrapper that handles requests from multiple servers. | [](https://pub.dev/packages/http_multi_server) | | [http_parser](pkgs/http_parser/) | A platform-independent package for parsing and serializing HTTP formats. | [](https://pub.dev/packages/http_parser) | | [http_profile](pkgs/http_profile/) | A library used by HTTP client authors to integrate with the DevTools Network View. | [](https://pub.dev/packages/http_profile) | | [ok_http](pkgs/ok_http/) | An Android Flutter plugin that provides access to the OkHttp HTTP client. | [](https://pub.dev/packages/ok_http) | | [web_socket](pkgs/web_socket/) | Any easy-to-use library for communicating with WebSockets that has multiple implementations. | [](https://pub.dev/packages/web_socket) | | [web_socket_channel](pkgs/web_socket_channel/) | A WebSocket API that enables cross-platform communication via StreamChannel. | [](https://pub.dev/packages/web_socket_channel) | | [web_socket_conformance_tests](pkgs/web_socket_conforman阅读完整原文
商业机会分析 AI 生成
Flutter 专用的网络流量协同调试与 APM SaaS
| 产品构想 | 基于 package:http 的拦截机制(Composable Client),提供一套开箱即用的网络抓包、请求日志云端回放与异常链路监控平台。 |
| 核心功能 | 一键注入式的网络拦截器、本地与云端实时抓包面板、敏感数据脱敏、慢请求/失败请求告警与链路重放 |
| 目标用户 | 独立开发者、中小型 Flutter 出海/跨端团队、QA 工程师 |
| 难度/周期 | 中等 · 2 - 3 个月 · 成本:极低(主要是云端存储和带宽高峰成本) |
| 收费模式 | 免费增值(Freemium)SaaS 订阅制,按月/按席位或按保留数据量收费 |
| 竞争风险 | 竞品成熟(如 Charles、Flipper、Proxyman、Sentry),开发者自建简单日志拦截器的边际成本极低 |
| 依据 | 已验证事实 |
API 自动化契约测试与故障注入测试套件
| 产品构想 | 利用 http 提供的 `http_client_conformance_tests` 与 Client 可组合特性,打造面向 Flutter 的端到端 API 契约校验与混沌工程工具。 |
| 核心功能 | 基于 OpenAPI/Swagger 规范的客户端请求自动断言、弱网/丢包/超时模拟、CI/CD 自动化集成报告 |
| 目标用户 | 中大型移动应用研发团队、企业测试/QA 部门 |
| 难度/周期 | 中等偏高 · 3 - 4 个月 · 成本:低(基础服务器及测试运行环境) |
| 收费模式 | 企业席位订阅费、私有化部署测试平台授权 |
| 竞争风险 | Dart/Flutter 生态中对于高阶移动端混沌工程的需求相对小众,销售周期长 |
| 依据 | 尚需验证的假设 |
移动端网络传输安全与合规中间件
| 产品构想 | 针对出海及金融合规场景,基于 http 封装的一套兼具防抓包、动态证书锁定(SSL Pinning)与反篡改签名的商业 SDK。 |
| 核心功能 | 动态下发证书公钥哈希、防止 Charles/Burp 挂载的检测机制、自动请求签名与防重放攻击验证 |
| 目标用户 | 金融类、游戏类 Flutter 应用出海团队、合规安全主管 |
| 难度/周期 | 高 · 3 - 5 个月 · 成本:低 |
| 收费模式 | 按 App 数量/年费授权,结合企业安全合规咨询服务收费 |
| 竞争风险 | 底层平台(iOS/Android 原生网络栈差异)兼容复杂,且逆向对抗需要持续更新成本 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| flutter/flutter | 中文介绍暂未生成 Flutter makes it easy and fast to build beautiful apps for m |
181,212 | Dart |
| krahets/hello-algo | 中文介绍暂未生成 《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python |
132,216 | Python |
| rustdesk/rustdesk | 中文介绍暂未生成 An open-source remote desktop application designed for self- |
129,051 | Rust |
| localsend/localsend | 中文介绍暂未生成 An open-source cross-platform alternative to AirDrop |
98,470 | Dart |
| NativeScript/NativeScript | 中文介绍暂未生成 ⚡ Write Native with TypeScript ✨ Best of all worlds (TypeScr |
25,700 | TypeScript |
| alibaba/flutter-go | 中文介绍暂未生成 flutter 开发者帮助 APP,包含 flutter 常用 140+ 组件的demo 演示与中文文档 |
23,616 | Dart |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2014-12-17,近 30 天仍在推送,发布过 16 个 Release |
| 社区活跃 | Star 1,115 / Fork 440 / Issue 384(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/dart-lang/http.git cd http # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。