[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);
});`
CHTTPManager is available under the MIT license. See the LICENSE file for more info.