sdk final

This commit is contained in:
robin
2026-03-05 16:53:59 +08:00
parent a10f3f3740
commit 491ade1bc3
44 changed files with 1595 additions and 960 deletions

View File

@@ -1,10 +1,14 @@
//
// DemoHttpdnsScenario.h
// NewHttpDNSTestDemo
// TrustHttpDNSTestDemo
//
// @author Created by Claude Code on 2025-10-23
//
#import <Foundation/Foundation.h>
#import "DemoResolveModel.h"
#import "HttpdnsEdgeService.h"
#import "HttpdnsPublicConstant.h"
NS_ASSUME_NONNULL_BEGIN
@@ -13,7 +17,12 @@ NS_ASSUME_NONNULL_BEGIN
@interface DemoHttpdnsScenarioConfig : NSObject <NSCopying>
@property (nonatomic, copy) NSString *host;
@property (nonatomic, copy) NSString *queryType; // @"A", @"AAAA", @"both"
@property (nonatomic, assign) HttpdnsQueryIPType ipType;
// HttpdnsEdgeService unsupported features removed:
// @property (nonatomic, assign) BOOL httpsEnabled;
// @property (nonatomic, assign) BOOL persistentCacheEnabled;
// @property (nonatomic, assign) BOOL reuseExpiredIPEnabled;
- (instancetype)init;
@@ -34,10 +43,9 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithDelegate:(id<DemoHttpdnsScenarioDelegate>)delegate;
- (void)applyConfig:(DemoHttpdnsScenarioConfig *)config;
- (void)resolve;
- (void)resolveSyncNonBlocking;
- (void)resolveSync;
- (NSString *)logSnapshot;
@end
NS_ASSUME_NONNULL_END