mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-02 22:42:45 +08:00
Introduces four modes for handling background requests: * RKRequestBackgroundPolicyNone - The default behavior replicating pre-background behavior. No special action is taken with regards to backgrounding. * RKRequestBackgroundPolicyCancel - On transition to the background, requests with this policy set will be cancelled automatically and the delegate informed. * RKRequestBackgroundPolicyContinue - Requests with this policy will be continued in the background after the app has been transitioned. * RKRequestBackgroundPolicyRequeue - Requests with this policy will be cancelled and then immediately placed onto the queue for processing the next time the app is returned to the foreground.
16 lines
321 B
Objective-C
16 lines
321 B
Objective-C
//
|
|
// Network.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 9/30/10.
|
|
// Copyright 2010 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKClient.h"
|
|
#import "RKRequest.h"
|
|
#import "RKResponse.h"
|
|
#import "RKRequestSerializable.h"
|
|
#import "RKReachabilityObserver.h"
|
|
#import "RKRequestQueue.h"
|
|
#import "RKNotifications.h"
|