ios demo
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
//
|
||||
// DemoHttpdnsScenario.h
|
||||
// TrustHttpDNSTestDemo
|
||||
//
|
||||
// @author Created by Claude Code on 2025-10-23
|
||||
// NewHttpDNSTestDemo
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "DemoResolveModel.h"
|
||||
#import "HttpdnsService.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -16,10 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@interface DemoHttpdnsScenarioConfig : NSObject <NSCopying>
|
||||
|
||||
@property (nonatomic, copy) NSString *host;
|
||||
@property (nonatomic, assign) HttpdnsQueryIPType ipType;
|
||||
@property (nonatomic, assign) BOOL httpsEnabled;
|
||||
@property (nonatomic, assign) BOOL persistentCacheEnabled;
|
||||
@property (nonatomic, assign) BOOL reuseExpiredIPEnabled;
|
||||
@property (nonatomic, copy) NSString *queryType; // @"A", @"AAAA", @"both"
|
||||
|
||||
- (instancetype)init;
|
||||
|
||||
@@ -39,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (instancetype)initWithDelegate:(id<DemoHttpdnsScenarioDelegate>)delegate;
|
||||
- (void)applyConfig:(DemoHttpdnsScenarioConfig *)config;
|
||||
- (void)resolve;
|
||||
- (void)resolveSyncNonBlocking;
|
||||
- (void)resolveSync;
|
||||
- (NSString *)logSnapshot;
|
||||
@@ -46,4 +41,3 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user