bindx / DXConnection

iOS 多线程网络请求

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DXConnection

####使用CocoaPods

pod 'DXConnection',:git=>"https://github.com/bindx/DXConnection.git"

###使用方法

##---GET请求

#####-Block方式 [DXRequest getDataWithUrlStr:@"http://getxxxx.com" WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {

}];

#####-Delegate方式

[DXRequest getDataWithUrlStr:@"http://getxxxx.com" WithCompleteDelegate:self];

##---POST请求

#####-Block方式

[DXRequest PostStrWithUrlStr:@"http://postxxxx.com" Paramters:@"xxxx" WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {
    
}];

    
[DXRequest PostDataWithUrlStr:@"http://postdata.com" Paramters:xxxx WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {
   
 }];

#####-Delegate方式

[DXRequest PostDataWithUrlStr:@"http://postDataxxx.com" Paramters:xxxx WithCompleteDelegate:self];

...

####-Delegate实现代理 <DXConnectionDeletage

- (void)downloadDidFinish:(NSDictionary *)response;

And more?

=============

关注GitHub https://github.com/bindx/OWSDemo.git

Follow @Bindx on GitHub for the latest update.

About

iOS 多线程网络请求

License:MIT License


Languages

Language:Objective-C 94.7%Language:Ruby 5.3%