Flutter HTTP 接口调用
原名:flutter-use-http-package
用 http 包实现 REST API 请求、错误处理、超时和响应解析。
中文 Skills 技能说明
适合 Flutter 应用连接自己的业务接口。开始前要明确接口契约、鉴权和数据边界,密钥不能硬编码在客户端;真实提交、删除或批量写入前应由用户确认,日志不得输出令牌和个人信息。
上游能力依据
上游原始适用说明:Use the http package to execute GET, POST, PUT, or DELETE requests. Use when you need to fetch from or send data to a REST API.
上游 SKILL.md 主要章节(保留原文标题):
- Contents
- Configuration & Permissions
- Request Execution & Response Handling
- Background Parsing
- Workflow: Executing Network Operations
- Examples
- High-Fidelity Implementation: Fetching and Parsing in the Background
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- The Flutter Authors 与 flutter/agent-plugins contributors
- 中文翻译
- CEOFans翻译
- 许可证
- BSD-3-Clause
- 上游来源
- https://github.com/flutter/agent-plugins/tree/864cf8797b190ddb81e4875db6dd6bab89641f62/skills/flutter-use-http-package
适用范围
平台:linux、macos、windows;标签:软件开发、Flutter HTTP 接口调用
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。