RBNetworkOperation Class Reference

Inherits from RBOperation : NSOperation
Declared in RBNetworkOperation.h

Overview

A network operation.

  observers

A collection of observers that implement RBNetworkOperationDelegate to receive delegate updates.

@property (nonatomic, readonly, nonnull) RBObserverCollection *observers

Declared In

RBNetworkOperation.h

  request

The underlying request object.

@property (nonatomic, readonly, nonnull) NSURLRequest *request

Declared In

RBNetworkOperation.h

  response

The underlying response object, nil until completion.

@property (nonatomic, readonly, nullable) RBNetworkResponse *response

Declared In

RBNetworkOperation.h

  requestCounter

The number of requests that are interested in the result of this operation.

@property (atomic) unsigned int requestCounter

Declared In

RBNetworkOperation.h

– initWithRequest:

Initializes a new network operation.

- (nonnull instancetype)initWithRequest:(nonnull NSURLRequest *)request

Parameters

request

The underlying request to be performed.

Return Value

The initialized network operation.

Declared In

RBNetworkOperation.h