Skip to content

AFNetworking使用不便。对AFN的二次封装,提高易用性。

License

Notifications You must be signed in to change notification settings

zhangjiuzhou/CHTTPManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHTTPManager

CI Status Version License Platform

Example

[CHTTPManager requestWithURL:@"http://www.mocky.io/v2/59b640850f00003e03712378"
                      params:[CHTTPRequestParams new]
 .setMethod(CHTTPMethodPost)
 .setQuery(@{@"one": @"1", @"two": @"2"})
 .setRequestBody(@{@"foo": @"bar", @"hello": @"world"})
 .setRequestBodyType(CHTTPRequestBodyTypeJSON)
 .setResponseBodyType(CHTTPResponseBodyTypeJSON)
 ]
.then(^(id response) {
    NSLog(@"Response: %@", response);
});`

Author

nbyh100@sina.com

License

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

About

AFNetworking使用不便。对AFN的二次封装,提高易用性。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published