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

插件详情v3.1.1

cupertino_http

一个适用于 macOS/iOS 的 Flutter 插件,可访问 Foundation URL 加载系统。

iOSmacOS
近 30 天下载
26.9万
喜欢数
80
Pub 分数
160

安装插件

flutter pub add cupertino_http

插件介绍

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

一个适用于 iOS 和 macOS 的 Flutter 插件,利用原生 Foundation URL 加载系统来处理 HTTP 请求。它提供了可靠且平台特定的网络通信实现,确保与系统级网络功能(如证书绑定、代理设置和安全连接处理)兼容。当开发者需要集成原生 iOS/macOS 网络行为或需要标准 Dart HTTP 客户端无法提供的高级安全配置时,此包特别有用。

适合场景

  • 原生 iOS/macOS 网络集成
  • 通过证书固定实现安全的HTTP连接
  • 代理和身份验证配置
  • 高级 TLS/SSL 设置
  • 系统级网络行为匹配

主要特点

  • 使用 Foundation URL 加载系统
  • 支持证书固定
  • 与系统代理设置集成
  • 提供安全的连接处理
  • 匹配原生平台网络行为

适合对象

  • iOS 和 macOS 应用开发者
  • 需要安全网络通信的应用程序
  • 需要原生网络功能的项目
  • 使用平台特定 HTTP 功能的开发人员
  • 具有严格安全要求的应用程序

使用建议

  • 仅限 iOS 和 macOS 平台
  • 需要理解原生网络概念
  • 不适用于跨平台HTTP需求
  • 可能比第三方HTTP库功能更少
  • 依赖于平台特定的系统API

原始 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.

所属分类

依赖

依赖清单 10 项

源码仓库

使用此插件的项目