Skip to content

A Objective-C network library based on AFNetworking/YYModel/YYCache.

License

Notifications You must be signed in to change notification settings

Pircate/YYURLRequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, gao497868860@163.com

License

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

About

A Objective-C network library based on AFNetworking/YYModel/YYCache.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published