杨锴
2025-04-16 09a372bc45fde16fd42257ab6f78b8deeecf720b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
//  OSSResult.h
//  AliyunOSSSDK
//
//  Created by huaixu on 2018/1/26.
//  Copyright © 2018年 aliyun. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/**
 The base class of result from OSS.
 */
@interface OSSResult : NSObject
 
/**
 The http response code.
 */
@property (nonatomic, assign) NSInteger httpResponseCode;
 
/**
 The http headers, in the form of key value dictionary.
 */
@property (nonatomic, strong) NSDictionary * httpResponseHeaderFields;
 
/**
 The request Id. It's the value of header x-oss-request-id, which is created from OSS server.
 It's a unique Id represents this request. This is used for troubleshooting when you contact OSS support.
 */
@property (nonatomic, strong) NSString * requestId;
 
/**
 It's the value of header x-oss-hash-crc64ecma, which is created from OSS server.
 */
@property (nonatomic, copy) NSString *remoteCRC64ecma;
 
/**
 It's the value of local Data.
 */
@property (nonatomic, copy) NSString *localCRC64ecma;
 
/// statistics information for the task.
@property (nonatomic, strong) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macos(10.12), ios(10.0));
 
@end