Baseflow / Baseflow/flutter_cache_manager

Http response headers

Open
#248 6 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Dart
Stars
809
Forks
510
Avg merge
6m
Merged PRs (30d)
1

Description

## 🚀 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

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CacheManager response handling and the response file representation mentioned in the issue. Determine how headers and body can be exposed together without breaking existing body-only callers. Done means callers on iOS and Android can retrieve response headers, including pagination metadata, alongside the cached body.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.