Latest 0.0.2
Homepage https://github.com/ShengHuaWu/SHHTTPRequest
License MIT
Platforms ios 7.0, requires ARC
Authors

This project is used to send HTTP requests synchronously or asynchronously.
It contains a primary class SHNetworking.

SHNetworking

Send http request synchronously or asynchronously.

  • Please read more details in the .h file.

Synchronous methods:

    - (NSData *)httpGetRequestWithURL:(NSURL *)url headers:(NSDictionary *)headers parameters:(NSDictionary *)parameters response:(NSHTTPURLResponse **)response andError:(NSError **)error;

    - (NSData *)httpPostRequestWithURL:(NSURL *)url headers:(NSDictionary *)headers jsonData:(NSData *)jsonData response:(NSHTTPURLResponse **)response andError:(NSError **)error;

    - (NSData *)httpPutRequestWithURL:(NSURL *)url headers:(NSDictionary *)headers jsonData:(NSData *)jsonData response:(NSHTTPURLResponse **)response andError:(NSError **)error;

    - (NSData *)httpDeleteRequestWithURL:(NSURL *)url headers:(NSDictionary *)headers response:(NSHTTPURLResponse **)response andError:(NSError **)error;

Asynchronous methods:

    - (void)httpGetRequestInBackgroundWithURL:(NSURL *)url headers:(NSDictionary *)headers parameters:(NSDictionary *)parameters andCompletion:(SHNetworkingCompletion)completion;

    - (void)httpPostRequestInBackgroundWithURL:(NSURL *)url headers:(NSDictionary *)headers jsonData:(NSData *)jsonData andCompletion:(SHNetworkingCompletion)completion;

    - (void)httpPutRequestInBackgroundWithURL:(NSURL *)url headers:(NSDictionary *)headers jsonData:(NSData *)jsonData andCompletion:(SHNetworkingCompletion)completion;

    - (void)httpDeleteRequestInBackgroundWithURL:(NSURL *)url headers:(NSDictionary *)headers andCompletion:(SHNetworkingCompletion)completion;

Latest podspec

{
    "name": "SHHTTPRequest",
    "version": "0.0.2",
    "summary": "Send http requests synchronously or asynchronously.",
    "description": "This library is used to send http requests synchronously or asynchronously.n                    For now, it only supports get, post, put and delete methods.",
    "homepage": "https://github.com/ShengHuaWu/SHHTTPRequest",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ShengHua Wu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/ShengHuaWu/SHHTTPRequest.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "SHHTTPRequest/Class/*.{h,m}",
        "SHHTTPRequest/Category/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This