mirror of
https://github.com/zhigang1992/aliyun-oss-react-native.git
synced 2026-06-15 09:57:51 +08:00
57 lines
2.3 KiB
Objective-C
57 lines
2.3 KiB
Objective-C
//
|
|
// OSSAllRequestNeededMessage.h
|
|
// AliyunOSSSDK
|
|
//
|
|
// Created by huaixu on 2018/1/22.
|
|
// Copyright © 2018年 aliyun. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "OSSConstants.h"
|
|
#import "OSSTask.h"
|
|
|
|
/**
|
|
All necessary information in one OSS request.
|
|
*/
|
|
@interface OSSAllRequestNeededMessage : NSObject
|
|
@property (nonatomic, strong) NSString * endpoint;
|
|
@property (nonatomic, strong) NSString * httpMethod;
|
|
@property (nonatomic, strong) NSString * bucketName;
|
|
@property (nonatomic, strong) NSString * objectKey;
|
|
@property (nonatomic, strong) NSString * contentType;
|
|
@property (nonatomic, strong) NSString * contentMd5;
|
|
@property (nonatomic, strong) NSString * range;
|
|
@property (nonatomic, strong) NSString * date;
|
|
@property (nonatomic, strong) NSMutableDictionary * headerParams;
|
|
@property (nonatomic, copy) NSDictionary * querys;
|
|
@property (nonatomic, copy) NSString *contentSHA1;
|
|
|
|
@property (nonatomic, assign) BOOL isHostInCnameExcludeList;
|
|
|
|
- (instancetype)initWithEndpoint:(NSString *)endpoint
|
|
httpMethod:(NSString *)httpMethod
|
|
bucketName:(NSString *)bucketName
|
|
objectKey:(NSString *)objectKey
|
|
type:(NSString *)contentType
|
|
md5:(NSString *)contentMd5
|
|
range:(NSString *)range
|
|
date:(NSString *)date
|
|
headerParams:(NSMutableDictionary *)headerParams
|
|
querys:(NSMutableDictionary *)querys __attribute__((deprecated("Use -initWithEndpoint:httpMethod:bucketName:objectKey:type:md5:range:date:headerParams:querys:sha1: instead")));
|
|
|
|
- (instancetype)initWithEndpoint:(NSString *)endpoint
|
|
httpMethod:(NSString *)httpMethod
|
|
bucketName:(NSString *)bucketName
|
|
objectKey:(NSString *)objectKey
|
|
type:(NSString *)contentType
|
|
md5:(NSString *)contentMd5
|
|
range:(NSString *)range
|
|
date:(NSString *)date
|
|
headerParams:(NSMutableDictionary *)headerParams
|
|
querys:(NSMutableDictionary *)querys
|
|
sha1:(NSString *)contentSHA1;
|
|
|
|
- (OSSTask *)validateRequestParamsInOperationType:(OSSOperationType)operType;
|
|
|
|
@end
|