FWCacheDirPathFilterProtocol
@protocol FWCacheDirPathFilterProtocol <NSObject>
FWCacheDirPathFilterProtocol can be used to append common path components when caching response results
-
Preprocess cache path before actually saving them.
Declaration
Objective-C
- (nonnull NSString *)filterCacheDirPath:(nonnull NSString *)originPath withRequest:(nonnull FWBaseRequest *)request;
Parameters
originPath
original base cache path, which is generated in
FWRequest
class.request
request itself
Return Value
A new path which will be used as base path when caching.