mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-27 22:41:10 +08:00
Updates from development of Go Try It On v2.0:
* Updates YAJL Parser not to raise an exception and crash when it encounters invalid JSON. The other parsers need to be aligned with this behavior and the delegate methods updated. See Pivotal Story: https://www.pivotaltracker.com/story/show/11925617 * Added requestDidCancel: delegate invocation for tracking cancellation of requests. * Ensure that the request queue timer is cleared during indeterminate deferral of request loads.
This commit is contained in:
committed by
Blake Watters
parent
1086ecc09b
commit
322599e14a
@@ -140,7 +140,10 @@ typedef enum RKRequestMethod {
|
||||
- (void)didFinishLoad:(RKResponse*)response;
|
||||
|
||||
/**
|
||||
* Cancels the underlying URL connection
|
||||
* Cancels the underlying URL connection.
|
||||
* This will send the requestDidCancel: delegate method
|
||||
* if your delegate responds to it. It then nils out the delegate
|
||||
* to ensure no more messages are sent to it.
|
||||
*/
|
||||
- (void)cancel;
|
||||
|
||||
@@ -209,4 +212,9 @@ typedef enum RKRequestMethod {
|
||||
*/
|
||||
- (void)request:(RKRequest*)request didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
|
||||
|
||||
/**
|
||||
* In the event the request is canceled, this is the last delegate method you will receive.
|
||||
*/
|
||||
- (void)requestDidCancel:(RKRequest*)request;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user