developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  WVURLProtocolProcessor.h
//  Core
//
//  Created by lianyu on 2019/4/24.
//  Copyright © 2019 WindVane. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/**
 WVURLProtocol 的处理器,目前仅用于 Ariver。
 */
@protocol WVURLProtocolProcessor <NSObject>
 
@required
 
+ (BOOL)canInitWithRequest:(NSURLRequest * _Nonnull)request;
- (instancetype _Nonnull)initWithRequest:(NSURLRequest * _Nonnull)request cachedResponse:(NSCachedURLResponse * _Nonnull)cachedResponse client:(id<NSURLProtocolClient> _Nonnull)client;
- (void)startLoading;
- (void)stopLoading;
 
@end