This commit is contained in:
robin
2026-03-05 02:52:45 +08:00
parent 49776c3d0a
commit a10f3f3740
8 changed files with 171 additions and 351 deletions

View File

@@ -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