AliyunHttpClient
Deprecated
deprecated
@interface AliyunHttpClient : NSObject
* A class that defines HTTP requests. Deprecated.
Return Value
AliyunHttpClient
-
Deprecated
deprecated
* Initializer.
Declaration
Objective-C
- (id)initWithBaseUrl:(NSString *)urlString;
Parameters
urlString
The request URL.
Return Value
AliyunHttpClient
-
Deprecated
deprecated
* Creates a GET request.
Declaration
Objective-C
- (void)GET:(NSString *)path parameters:(NSDictionary *)parameters completionHandler: (void (^)(NSURLResponse *, id, NSError *))completionHandler;
Parameters
path
The request path.
parameters
The request parameters.
completionHandler
The callback.
-
Deprecated
deprecated
* Downloads a request.
Declaration
Objective-C
- (void)download:(NSString *)remotePath destination:(NSString *)destination progress:(void (^)(NSProgress *))downloadProgressBlock completionHandler:(void (^)(NSURL *, NSError *))completionHandler;
Parameters
remotePath
The request path.
destination
The local storage path.
downloadProgressBlock
The download progress parameter.
completionHandler
The callback.