ROAsyncRequestDelegate

Overview

The ROAsyncRequestDelegate describes the delegate methods that a ROAsyncRequest will call on its delegate object, to inform it about progress, success or failure of the request.

Location


 

asyncRequest:didFailWithException:

Informs the delegate that the request has failed with the given exception. This can happen either if the request failed on the network level and never received a response, or if an exception, raised while executing asyncRequestDidComplete:, was not caught.

- (void) asyncRequest:(ROAsyncRequest *)request didFailWithException:(NSException *)exception

Parameters:

  • request: Reference to failed async request
  • exception: Reference to exception that was raised.

asyncRequest:didReceiveDataSize:ofExpected:

@optional - (void) asyncRequest:(nonnull ROAsyncRequest *)request didReceiveDataSize:(int)size ofExpected:(int)totalSize

Parameters:

  • request:
  • size:
  • totalSize:

asyncRequest:didSendDataSize:ofExpected:

@optional - (void) asyncRequest:(nonnull ROAsyncRequest *)aRequest didSendDataSize:(int)size ofExpected:(int)totalSize

Parameters:

  • aRequest:
  • size:
  • totalSize:

asyncRequest:shouldAcceptUntrustedServerCertificate:

@optional - (BOOL) asyncRequest:(nonnull ROAsyncRequest *)request shouldAcceptUntrustedServerCertificate:(nonnull ROCertificateInfo *)cert

Parameters:

  • request:
  • cert:

asyncRequestDidComplete:

Informs the delegate that the request has completed successfully, and the end* method can now be called to obtain its result, if any. The done property will be set to YES before this message is sent.

Note: Receiving this message does not necessarily imply that the request has completed successfully' on the server. Any excpetion returned from the server will not be thrown until theend*` method is called.

- (void) asyncRequestDidComplete:(ROAsyncRequest *)request

Parameters:

  • request: Reference to completed async request

asyncRequestDidFinishLogin:

@optional - (void) asyncRequestDidFinishLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestNeedsLogin:

@optional - (BOOL) asyncRequestNeedsLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWasCanceled:

@optional - (void) asyncRequestWasCanceled:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWasSuspendedAwaitingLogin:

@optional - (void) asyncRequestWasSuspendedAwaitingLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWillBeginLogin:

@optional - (void) asyncRequestWillBeginLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

 

asyncRequest:didFailWithException:

Informs the delegate that the request has failed with the given exception. This can happen either if the request failed on the network level and never received a response, or if an exception, raised while executing asyncRequestDidComplete:, was not caught.

- (void) asyncRequest:(ROAsyncRequest *)request didFailWithException:(NSException *)exception

Parameters:

  • request: Reference to failed async request
  • exception: Reference to exception that was raised.

asyncRequestDidComplete:

Informs the delegate that the request has completed successfully, and the end* method can now be called to obtain its result, if any. The done property will be set to YES before this message is sent.

Note: Receiving this message does not necessarily imply that the request has completed successfully' on the server. Any excpetion returned from the server will not be thrown until theend*` method is called.

- (void) asyncRequestDidComplete:(ROAsyncRequest *)request

Parameters:

  • request: Reference to completed async request

 

asyncRequest:didReceiveDataSize:ofExpected:

@optional - (void) asyncRequest:(nonnull ROAsyncRequest *)request didReceiveDataSize:(int)size ofExpected:(int)totalSize

Parameters:

  • request:
  • size:
  • totalSize:

asyncRequest:didSendDataSize:ofExpected:

@optional - (void) asyncRequest:(nonnull ROAsyncRequest *)aRequest didSendDataSize:(int)size ofExpected:(int)totalSize

Parameters:

  • aRequest:
  • size:
  • totalSize:

asyncRequest:shouldAcceptUntrustedServerCertificate:

@optional - (BOOL) asyncRequest:(nonnull ROAsyncRequest *)request shouldAcceptUntrustedServerCertificate:(nonnull ROCertificateInfo *)cert

Parameters:

  • request:
  • cert:

asyncRequestDidFinishLogin:

@optional - (void) asyncRequestDidFinishLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestNeedsLogin:

@optional - (BOOL) asyncRequestNeedsLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWasCanceled:

@optional - (void) asyncRequestWasCanceled:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWasSuspendedAwaitingLogin:

@optional - (void) asyncRequestWasSuspendedAwaitingLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request:

asyncRequestWillBeginLogin:

@optional - (void) asyncRequestWillBeginLogin:(nonnull ROAsyncRequest *)request

Parameters:

  • request: