RKRequestQueueDelegate Protocol Reference
Conforms to | NSObject |
Declared in | RKRequestQueue.h |
Tasks
Starting and Stopping the Queue
-
– requestQueueDidBeginLoading:
Sent when the queue transitions from an empty state to processing requests.
-
– requestQueueDidFinishLoading:
Sent when queue transitions from a processing state to an empty start.
-
– requestQueueWasSuspended:
Sent when the queue has been suspended and request processing has been halted.
-
– requestQueueWasUnsuspended:
Sent when the queue has been unsuspended and request processing has resumed.
Processing Requests
-
– requestQueue:willSendRequest:
Sent before queue sends a request.
-
– requestQueue:didSendRequest:
Sent after queue has sent a request.
-
– requestQueue:didLoadResponse:
Sent when queue received a response for a request.
-
– requestQueue:didCancelRequest:
Sent when queue has canceled a request.
-
– requestQueue:didFailRequest:withError:
Sent when an attempted request fails.
Instance Methods
requestQueue:didCancelRequest:
Sent when queue has canceled a request.
- (void)requestQueue:(RKRequestQueue *)queue didCancelRequest:(RKRequest *)request
Parameters
- queue
The queue that cancelled the request.
- request
The cancelled request.
Declared In
RKRequestQueue.h
requestQueue:didFailRequest:withError:
Sent when an attempted request fails.
- (void)requestQueue:(RKRequestQueue *)queue didFailRequest:(RKRequest *)request withError:(NSError *)error
Parameters
- queue
The queue in which the request failed from.
- request
The failed request.
- error
An NSError object containing the RKRestKitError that caused the request to fail.
Declared In
RKRequestQueue.h
requestQueue:didLoadResponse:
Sent when queue received a response for a request.
- (void)requestQueue:(RKRequestQueue *)queue didLoadResponse:(RKResponse *)response
Parameters
- queue
The queue that received the response.
- response
The response that was received.
Declared In
RKRequestQueue.h
requestQueue:didSendRequest:
Sent after queue has sent a request.
- (void)requestQueue:(RKRequestQueue *)queue didSendRequest:(RKRequest *)request
Parameters
- queue
The queue that processed the request.
- request
The processed request.
Declared In
RKRequestQueue.h
requestQueue:willSendRequest:
Sent before queue sends a request.
- (void)requestQueue:(RKRequestQueue *)queue willSendRequest:(RKRequest *)request
Parameters
- queue
The queue that will process the request.
- request
The request to be processed.
Declared In
RKRequestQueue.h
requestQueueDidBeginLoading:
Sent when the queue transitions from an empty state to processing requests.
- (void)requestQueueDidBeginLoading:(RKRequestQueue *)queue
Parameters
- queue
The queue that began processing requests.
Declared In
RKRequestQueue.h
requestQueueDidFinishLoading:
Sent when queue transitions from a processing state to an empty start.
- (void)requestQueueDidFinishLoading:(RKRequestQueue *)queue
Parameters
- queue
The queue that finished processing requests.
Declared In
RKRequestQueue.h