AFNetwork 0.1.0

AFNetwork 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by lingyunfeng.



AFNetwork 0.1.0

  • By
  • lingyfh

Example

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;

Requirements

AFNetworking

Installation

AFNetwork is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AFNetwork"

Author

lingyfh, [email protected]

License

AFNetwork is available under the MIT license. See the LICENSE file for more info.