RLMResponse
Objective-C
@interface RLMResponse : NSObject
Swift
@_nonSendable(_assumed) class RLMResponse : NSObject
HTTP 响应的内容。
-
HTTP 响应的状态代码。
声明
Objective-C
@property (nonatomic) NSInteger httpStatusCode;
Swift
var httpStatusCode: Int { get set }
-
SDK 提供的自定义状态代码。
声明
Objective-C
@property (nonatomic) NSInteger customStatusCode;
Swift
var customStatusCode: Int { get set }
-
HTTP响应的标头。
声明
Objective-C
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nonnull headers;
Swift
var headers: [String : String] { get set }
-
HTTP 响应的正文。
声明
Objective-C
@property (nonatomic, strong) NSString *_Nonnull body;
Swift
var body: String { get set }