mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 04:20:21 +08:00
Added comments to RKRequestDelegate
This commit is contained in:
@@ -58,6 +58,9 @@ typedef enum RKRequestMethod {
|
||||
|
||||
/**
|
||||
* The delegate to inform when the request is completed
|
||||
*
|
||||
* If the object implements the RKRequestDelegate protocol,
|
||||
* it will receive request lifecycle event messages.
|
||||
*/
|
||||
@property(nonatomic, retain) id delegate;
|
||||
|
||||
@@ -154,8 +157,25 @@ typedef enum RKRequestMethod {
|
||||
*/
|
||||
@protocol RKRequestDelegate
|
||||
@optional
|
||||
|
||||
/**
|
||||
* Sent when a request has started loading
|
||||
*/
|
||||
- (void)requestDidStartLoad:(RKRequest*)request;
|
||||
|
||||
/**
|
||||
* Sent when a request has finished loading
|
||||
*/
|
||||
- (void)requestDidFinishLoad:(RKRequest*)request;
|
||||
|
||||
/**
|
||||
* Sent when a request has failed due to an error
|
||||
*/
|
||||
- (void)request:(RKRequest*)request didFailLoadWithError:(NSError*)error;
|
||||
|
||||
/**
|
||||
* Sent when a request has been canceled
|
||||
*/
|
||||
- (void)requestDidCancelLoad:(RKRequest*)request;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user