迁移仓库
This commit is contained in:
28
ShenQi/GDWebURLSessionDelegate.h
Normal file
28
ShenQi/GDWebURLSessionDelegate.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// GDWebURLSessionDelegate.h
|
||||
// DESThreeTest
|
||||
//
|
||||
// Created by Qwerdf on 2025/10/24.
|
||||
// Copyright © 2025 zhang alan. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface GDWebURLSessionDelegate : NSObject <NSURLSessionDataDelegate>
|
||||
|
||||
@property (nonatomic, strong) id<WKURLSchemeTask> schemeTask;
|
||||
@property (nonatomic, copy) void(^completion)(void);
|
||||
@property (nonatomic, weak) NSMutableDictionary *stopMarkDic;
|
||||
@property (nonatomic, strong) NSURLResponse *cachedResponse; // 缓存响应头
|
||||
@property (nonatomic, strong) NSMutableData *cachedData; // 缓存响应体数据
|
||||
|
||||
/// 初始化:关联 schemeTask 和完成回调
|
||||
- (instancetype)initWithSchemeTask:(id<WKURLSchemeTask>)schemeTask
|
||||
completion:(void(^)(void))completion;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user