Baseflow / Baseflow/flutter_cache_manager

Http response headers

未关闭
#248 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
type: enhancement
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

## 🚀 Feature Requests

Currently the CacheManager only returns the body of the http response. It will be really useful to be able to retrieve also the respnse headers.

### Contextualize the feature

Some api for example insert the total number of pages (for pagination) in the response header, and currently is impossible to read it.

### Describe the feature
The response file could be a json that contains both the headers and the body of the http response.

### Platforms affected (mark all that apply)
- [x] :iphone: iOS
- [x] :robot: Android

贡献指南

打开贡献指南

调研方向

首先跟踪 CacheManager 的响应处理流程,以及 issue 中提到的响应文件表示方式。确定如何在不破坏现有仅使用 body 的调用方的情况下,同时公开 headers 和 body。完成标准是 iOS 和 Android 上的调用方都能在获取缓存 body 的同时获取响应 headers,包括分页元数据。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
mobile
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。