Baseflow / Baseflow/flutter_cache_manager

Http response headers

オープン
#248 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
type: enhancement
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
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 のみを使用する呼び出し元を壊すことなく、ヘッダーと body を一緒に公開する方法を判断します。iOS と Android の呼び出し元が、キャッシュされた body とともに、ページネーションメタデータを含むレスポンスヘッダーを取得できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。