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

Discussion

A delegate to be informed of completion or cancellation.

Declared In

RBNetworkRequestOperation.h

  networkOperation

The underlying network operation that this request awaits completion of.

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

Discussion

The underlying network operation that this request awaits completion of.

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

Discussion

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

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

Discussion

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

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

Discussion

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

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.

Discussion

Initializes a new request operation.

Declared In

RBNetworkRequestOperation.h