admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Created by bytedance on 2020/12/15.
//
 
#import <Foundation/Foundation.h>
 
@class BUNetworkRequest,BUTNCRequestParam;
 
@interface BUTNCServiceConfig : NSObject
 
@property (nonatomic, copy, readonly) NSString *appKey;
 
@property(nonatomic, copy, readonly) NSString *tncPath;
 
@property(nonatomic, copy, readonly) NSArray<NSString *> *tncDomains;
 
@property(nonatomic, copy, readonly) BUTNCRequestParam *(^tncRequestParam)(void);
@end
 
__attribute__((objc_subclassing_restricted))
@interface BUTNCServiceManager : NSObject
 
+ (void)registerTNCServiceWithAppKey:(NSString *)appKey tncDomains:(NSArray<NSString *> *)tncDomains tncPath:(NSString *)tncPath requestParam:(BUTNCRequestParam * (^)(void))param;
 
+ (void)unregisterTNCServiceWithAppKey:(NSString *)appKey;
 
+ (NSString *)TNCUrlWithBaseUrl:(NSString *)baseUrl forRequest:(BUNetworkRequest *)request;
 
+ (void)refreshTNCDomainsWithAppKey:(NSString *)appKey;
@end