QNUploadServer.h 796 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // QNUploadServer.h
  3. // AppTest
  4. //
  5. // Created by yangsen on 2020/4/23.
  6. // Copyright © 2020 com.qiniu. All rights reserved.
  7. //
  8. #import "QNUploadRegionInfo.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface QNUploadServer : NSObject <QNUploadServer>
  11. @property(nonatomic, copy)NSString *httpVersion;
  12. /// 上传server构造方法
  13. /// @param host host
  14. /// @param ip host对应的IP
  15. /// @param source ip查询来源,@"system",@"httpdns", @"none", @"customized" 自定义请使用@"customized"
  16. /// @param ipPrefetchedTime 根据host获取IP的时间戳
  17. + (instancetype)server:(NSString * _Nullable)host
  18. ip:(NSString * _Nullable)ip
  19. source:(NSString * _Nullable)source
  20. ipPrefetchedTime:(NSNumber * _Nullable)ipPrefetchedTime;
  21. @end
  22. NS_ASSUME_NONNULL_END