RBNetworkRequestOperation Class Reference

Inherits from RBOperation : NSOperation
Declared in RBNetworkRequestOperation.h

Overview

A network request operation, representing one interested party in an RBNetworkOperation.

  delegate

A delegate to be informed of completion or cancellation.

@property (nonatomic, weak, nullable) id<RBNetworkRequestOperationDelegate> delegate

Declared In

RBNetworkRequestOperation.h

  networkOperation

The underlying network operation that this request awaits completion of.

@property (nonatomic, readonly, nonnull) RBNetworkOperation *networkOperation

Declared In

RBNetworkRequestOperation.h

  operationBeganBlock

The block to call to notify the caller that the operation began receiving a response.

@property (nonatomic, readonly, nullable) NetworkOperationBeganBlock operationBeganBlock

Declared In

RBNetworkRequestOperation.h

  operationProgressUpdateBlock

The block to call to notify the caller of the latest progress in receiving the response.

@property (nonatomic, readonly, nullable) NetworkOperationProgressUpdateBlock operationProgressUpdateBlock

Declared In

RBNetworkRequestOperation.h

  operationCompletionBlock

The block to call to notify the caller of the response when the operation is completed.

@property (nonatomic, readonly, nullable) NetworkOperationCompletionBlock operationCompletionBlock

Declared In

RBNetworkRequestOperation.h

– initWithNetworkOperation:operationBeganBlock:progressUpdateBlock:completionBlock:

Initializes a new request operation.

- (nonnull instancetype)initWithNetworkOperation:(nonnull RBNetworkOperation *)networkOperation operationBeganBlock:(nullable NetworkOperationBeganBlock)operationBeganBlock progressUpdateBlock:(nullable NetworkOperationProgressUpdateBlock)progressUpdateBlock completionBlock:(nonnull NetworkOperationCompletionBlock)completionBlock

Parameters

networkOperation

The underlying network operation that this request awaits completion of.

operationBeganBlock

The block to call to notify the caller that the operation began receiving a response.

progressUpdateBlock

The block to call to notify the caller of the latest progress in receiving the response.

completionBlock

The block to call to notify the caller of the response when the operation is completed.

Return Value

The initialized request operation.

Declared In

RBNetworkRequestOperation.h