Inherits from NSObject
Declared in AdobeNetworkHTTPAsyncRequest.h

Overview

AdobeNetworkHTTPAsyncRequest is the class by which asynchronous network operations are managed.

It allows clients to:

  • Change the priority of asynchronous network requests that have not yet been started.
  • Cancel asynchronous network requests.

Tasks

Properties

GUID

The request ID.

@property (nonatomic, readonly, strong) NSString *GUID

Discussion

The request ID.

Declared In

AdobeNetworkHTTPAsyncRequest.h

active

Whether the request is active.

@property (nonatomic, readonly, assign, getter=isActive) BOOL active

Discussion

Whether the request is active.

Declared In

AdobeNetworkHTTPAsyncRequest.h

priority

get and set the request’s priority

@property NSOperationQueuePriority priority

Discussion

Allows setting the request’s priority relative to other queued requests. Setting this property has no effect if the request is already executing.

Declared In

AdobeNetworkHTTPAsyncRequest.h

Instance Methods

cancel

Cancels the asynchronous request.

- (void)cancel

Discussion

Call cancel to cancel an asynchronous request. If the asynchronous request has not completed, i.e. neither the error or completion blocks have been called, then cancel will cancel the request and the cancellation block will be called upon successful cancellation. Note that it is possible to receive a completion or error callback after cancel has been called in the event when the asynchronous request completes before the cancellation can be processed.

Declared In

AdobeNetworkHTTPAsyncRequest.h