SFRestRequestDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SFRestRequest.h |
– request:didSucceed:rawResponse:
Called when a request was successful.
- (void)request:(SFRestRequest *)request didSucceed:(id)dataResponse rawResponse:(NSURLResponse *)rawResponse
Parameters
request |
REST request. |
---|---|
dataResponse |
The data from the response. By default, this will be an object
containing the parsed JSON response. However, if the response is not JSON,
the data will be contained in a binary |
rawResponse |
Raw response returned by the server. |
Declared In
SFRestRequest.h
– request:didFail:rawResponse:error:
Called when a request failed.
- (void)request:(SFRestRequest *)request didFail:(id)dataResponse rawResponse:(NSURLResponse *)rawResponse error:(NSError *)error
Parameters
request |
REST request. |
---|---|
dataResponse |
The data from the response. By default, this will be an object
containing the parsed JSON response. However, if the response is not JSON,
the data will be contained in a binary |
rawResponse |
Raw response returned by the server. |
error |
Error received. |
Declared In
SFRestRequest.h