-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
Please add the following minor changes:
Make DioCacheManager._buildResponse() non-private and async (make it protected), with changed to RequestInterceptorHandler it is currently too hard to adjust cached data additionally in DioCacheManager descendants.
@protected
Future<Response> buildResponse(CacheObj obj, int statusCode, RequestOptions options) async {
}And add await in two places of DioCacheManager where buildResponse() called.
It is proper change for new handler based structure. Example: there are some data in cache and they are still valid, but some headers and cookies are changed, so I need just slightly adjust Response without discarding the cache. So I have descendant which manages this after data returned from the cache.
andreystavitsky
Metadata
Metadata
Assignees
Labels
No labels