Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.06 KB

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.