QNIUploadServer.h 840 B

12345678910111213141516171819202122232425262728
  1. //
  2. // QNIUploadServer.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/7/3.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import<Foundation/Foundation.h>
  9. @protocol QNUploadServer <NSObject>
  10. @property(nonatomic, copy, nullable, readonly)NSString *httpVersion;
  11. @property(nonatomic, copy, nullable, readonly)NSString *serverId;
  12. @property(nonatomic, copy, nullable, readonly)NSString *ip;
  13. @property(nonatomic, copy, nullable, readonly)NSString *host;
  14. @property(nonatomic, copy, nullable, readonly)NSString *source;
  15. @property(nonatomic,strong, nullable, readonly)NSNumber *ipPrefetchedTime;
  16. @end
  17. #define kQNHttpVersion1 @"http_version_1"
  18. #define kQNHttpVersion2 @"http_version_2"
  19. #define kQNHttpVersion3 @"http_version_3"
  20. BOOL kQNIsHttp3(NSString * _Nullable httpVersion);
  21. BOOL kQNIsHttp2(NSString * _Nullable httpVersion);