mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-03 17:55:10 +08:00
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
21 lines
534 B
Objective-C
21 lines
534 B
Objective-C
//
|
|
// RKNetwork.m
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 3/28/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKNetwork.h"
|
|
|
|
// Global credential persistence value.
|
|
static NSURLCredentialPersistence gCredentialPersistence = NSURLCredentialPersistenceForSession;
|
|
|
|
NSURLCredentialPersistence RKNetworkGetGlobalCredentialPersistence() {
|
|
return gCredentialPersistence;
|
|
}
|
|
|
|
void RKNetworkSetGlobalCredentialPersistence(NSURLCredentialPersistence persistence) {
|
|
gCredentialPersistence = persistence;
|
|
}
|