洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
912 B

//
// OSSHttpResponseParser.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"
NS_ASSUME_NONNULL_BEGIN
/**
HTTP response parser
*/
@interface OSSHttpResponseParser : NSObject
@property (nonatomic, copy) OSSNetworkingOnRecieveDataBlock onRecieveBlock;
/**
* A Boolean value that determines whether verfifying crc64.
When set to YES, it will verify crc64 when transmission is completed normally.
The default value of this property is NO.
*/
@property (nonatomic, assign) BOOL crc64Verifiable;
- (instancetype)initForOperationType:(OSSOperationType)operationType;
- (void)consumeHttpResponse:(NSHTTPURLResponse *)response;
- (OSSTask *)consumeHttpResponseBody:(NSData *)data;
- (nullable id)constructResultObject;
- (void)reset;
@end
NS_ASSUME_NONNULL_END