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
originPathoriginal base cache path, which is generated in
FWRequestclass.requestrequest itself
Return Value
A new path which will be used as base path when caching.
FWCacheDirPathFilterProtocol Protocol Reference