YYURLRequest 0.2.2

YYURLRequest 0.2.2

Maintained by Pircate.



 
Depends on:
AFNetworking>= 0
YYModel>= 0
YYCache>= 0
 

  • By
  • Pircate

YYURLRequest

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

YYURLRequest is available through CocoaPods or Carthage. To install it, simply add the following line to your Podfile or Cartfile:

CocoaPods

pod 'YYURLRequest'

Carthage

github "Pircate/YYURLRequest"

Usage

Import

#import <YYURLRequest/YYURLRequest.h>

Request with cache

YYURLRequest *request = [YYURLRequest requestWithBaseURL:[NSURL URLWithString:@""] path:@"" parameters:@{}];
request.cache(^(id response) {
        
}).then(^(id response) {
        
}).catch(^(NSError *error) {
        
});

Request without cache

request.then(^(id response) {
        
}).catch(^(NSError *error) {
        
});

Author

Pircate, [email protected]

License

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