iOS 的 HTTP 开发包 ILHTTPClient
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/isaaclimdc/ILHTTPClient
- 软件文档: https://github.com/isaaclimdc/ILHTTPClient
软件介绍
ILHTTPClient 是一个非常简单的 AFNetworking 库的封装,还带有一个动画的 HUD 状态显示。
示例代码:
[client getPath:path
parameters:params
loadingText:@"Loading"
successText:@"Completed!"
success:^(AFHTTPRequestOperation *operation, NSString *response)
{
id JSON = [response JSONValue]; //If JSON is returned
/* Do something with this data */
}
failure:^(AFHTTPRequestOperation *operation, NSError *error)
{
NSLog(@"Error: %@", error);
/* Handle the error here */
}];
