Instance Property

timeoutIntervalForRequest

The timeout interval to use when waiting for additional data.

Declaration

var timeoutIntervalForRequest: TimeInterval { get set }

Discussion

This property determines the request timeout interval for the operation. The request timeout interval controls how long (in seconds) the operation should wait for additional data to arrive before giving up. The timer associated with this value is reset whenever new data arrives. When the request timer reaches the specified interval without receiving any new data, it triggers a timeout.

The default value is 60 seconds.

See Also

Customizing the Network Access Behavior

var allowsCellularAccess: Bool

A Boolean value indicating whether the operation object may send data over the cell network.

Deprecated
var timeoutIntervalForResource: TimeInterval

The maximum amount of time that a resource request should be allowed to take.

Deprecated