搜索插件、代码仓与 APP 分类

插件详情v1.10.1

cronet_http

一个为 Android 提供 Cronet HTTP 客户端访问权限的 Flutter 插件。

Android
近 30 天下载
22.3万
喜欢数
82
Pub 分数
160

安装插件

flutter pub add cronet_http

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

cronet_http 包是一个针对 Android 的 Flutter 插件,集成了 Google 的 Cronet HTTP 客户端,提供高性能的网络功能,支持 HTTP/2、QUIC 和连接池等高级特性。该包通过利用 Cronet 的优化传输层,旨在提升 Android 设备上的网络效率和可靠性。对于需要快速、低延迟 HTTP 通信的应用程序,此包尤为有用。它仅适用于 Android 平台,由 Dart 团队维护。

适合场景

  • Android 上的高性能 HTTP 请求
  • 需要 HTTP/2 和 QUIC 支持的应用程序
  • 需要高效连接管理的网络密集型应用程序
  • 具有强大重试机制的离线优先应用
  • 针对现代 Android 设备的优化网络应用

主要特点

  • 使用 Google 的 Cronet HTTP 客户端
  • 支持 HTTP/2 和 QUIC 协议
  • 内置连接池
  • 性能和可靠性得到提升
  • 仅限 Android 平台支持

适合对象

  • 面向 Android 的 Flutter 应用
  • 性能关键的网络
  • 使用现代HTTP标准的应用程序
  • 寻求对 HTTP 传输进行低级别控制的开发人员
  • 网络效率优先的项目

使用建议

  • 仅限Android平台
  • 需要 Android SDK 21+
  • 不支持 iOS 或网页
  • 依赖原生 Cronet 库
  • 由于原生依赖项,应用大小可能增加

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Build Status

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

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目