AliyunHttpClient

Deprecated

deprecated


@interface AliyunHttpClient : NSObject

http请求封装类 已废弃

Return Value

AliyunHttpClient

  • Deprecated

    deprecated

    初始化

    Declaration

    Objective-C

    - (id)initWithBaseUrl:(NSString *)urlString;

    Parameters

    urlString

    请求url

    Return Value

    AliyunHttpClient

  • Deprecated

    deprecated

    get请求

    Declaration

    Objective-C

    - (void)GET:(NSString *)path
               parameters:(NSDictionary *)parameters
        completionHandler:
            (void (^)(NSURLResponse *, id, NSError *))completionHandler;

    Parameters

    path

    请求路径

    parameters

    参数

    completionHandler

    完成回调

  • Deprecated

    deprecated

    下载请求

    Declaration

    Objective-C

    - (void)download:(NSString *)remotePath
              destination:(NSString *)destination
                 progress:(void (^)(NSProgress *))downloadProgressBlock
        completionHandler:(void (^)(NSURL *, NSError *))completionHandler;

    Parameters

    remotePath

    请求路径

    destination

    本地保存路径

    downloadProgressBlock

    参数

    completionHandler

    完成回调