Latest 0.1.0
Homepage https://github.com/lingyfh/AFNetwork
License MIT
Platforms ios 8.0
Dependencies AFNetworking
Authors

CI Status
Version
License
Platform

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.

Latest podspec

{
    "name": "AFNetwork",
    "version": "0.1.0",
    "summary": "Simple request manager about AFNetworking",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/lingyfh/AFNetwork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lingyfh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lingyfh/AFNetwork.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "public_header_files": [
        "AFNetwork/*.h",
        "AFNetwork/**/*.h"
    ],
    "source_files": "AFNetwork/Classes/**/*",
    "dependencies": {
        "AFNetworking": [
            "~> 3.0"
        ]
    }
}

Pin It on Pinterest

Share This