TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2017 |
Maintained by lingyunfeng.
To run the example project, clone the repo, and run pod install
from the Example directory first.
typedef enum {
GET,
POST,
PUT,
DELETE
} HTTPMethod;
+ (instancetype)shareManager;
- (void)requestWithMethod:(HTTPMethod)method
url:(NSString *)url
params:(NSMutableDictionary *)params
success:(successBlock)success
failure:(failureBlock)failure;
- (void)requestURL:(NSString *)url
params:(NSMutableDictionary *)params
success:(successBlock)success
failure:(failureBlock)failure;
- (void)requestWithMethod:(HTTPMethod)method
url:(NSString *)url
params:(NSMutableDictionary *)params
success:(successBlock)success
failure:(failureBlock)failure
finish:(finishBlock)finish;
- (void)requestURL:(NSString *)url
params:(NSMutableDictionary *)params
success:(successBlock)success
failure:(failureBlock)failure
finish:(finishBlock)finish;
AFNetworking
AFNetwork is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AFNetwork"
lingyfh, [email protected]
AFNetwork is available under the MIT license. See the LICENSE file for more info.