Accela SDK for iOS
V3.0
|
#import <AMRequest.h>
Public Member Functions | |
(void) | - amRequestStarted: |
(void) | - amRequest:didReceiveResponse: |
(void) | - amRequest:didFailWithError: |
(void) | - amRequest:didLoad: |
(void) | - amRequest:receivedBytes:total: |
(void) | - amRequest:sendBytes: |
Defines the methods that a delegate of a AMRequest object may implement.
All the methods defined in this protocol are optional.
Called when an error prevents the request from completing successfully.
- (void) amRequest: | (AMRequest *) | request | |
didLoad: | (id) | result | |
[optional] |
Called when a request returns and its response has been parsed into an object.
The resulting object format may be a dictionary or an array.
Note that the result is nil if the amDownloadDestinationPath property bas been set to a valid value.
- (void) amRequest: | (AMRequest *) | request | |
didReceiveResponse: | (NSDictionary *) | httpHeaders | |
[optional] |
Called when the server responds and begins to send back data.
- (void) amRequest: | (AMRequest *) | request | |
receivedBytes: | (long long) | bytes | |
total: | (long long) | total | |
[optional] |
Called when the request receives some data.
Note that the total is 0 if there is no Content-Length variable in the HTTP herders
- (void) amRequest: | (AMRequest *) | request | |
sendBytes: | (long long) | bytes | |
[optional] |
Called when the request sends some data.
- (void) amRequestStarted: | (AMRequest *) | request | [optional] |
Called just before the request is sent to the server.