mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-11 18:11:33 +08:00
Work in progress on cleanup
This commit is contained in:
39
Code/ObjectMapping/RKConfigurationDelegate.h
Normal file
39
Code/ObjectMapping/RKConfigurationDelegate.h
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// RKConfigurationDelegate.h
|
||||
// RestKit
|
||||
//
|
||||
// Created by Blake Watters on 1/7/12.
|
||||
// Copyright (c) 2012 RestKit. All rights reserved.
|
||||
//
|
||||
|
||||
@class RKRequest, RKObjectLoader;
|
||||
|
||||
/**
|
||||
The RKConfigurationDelegate formal protocol defines
|
||||
methods enabling the centralization of RKRequest and
|
||||
RKObjectLoader configuration. An object conforming to
|
||||
the protocol can be used to set headers, authentication
|
||||
credentials, etc.
|
||||
|
||||
RKClient and RKObjectManager conform to RKConfigurationDelegate
|
||||
to configure request and object loader instances they build.
|
||||
*/
|
||||
@protocol RKConfigurationDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
Configure a request before it is utilized
|
||||
|
||||
@param request A request object being configured for dispatch
|
||||
*/
|
||||
- (void)configureRequest:(RKRequest *)request;
|
||||
|
||||
/**
|
||||
Configure an object loader before it is utilized
|
||||
|
||||
@param request An object loader being configured for dispatch
|
||||
*/
|
||||
- (void)configureObjectLoader:(RKObjectLoader *)objectLoader;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user