Instance Property

allowsCellularAccess

A Boolean value that indicates whether a connection can use the device’s cellular network (if present).

Declaration

var allowsCellularAccess: Bool { get set }

Discussion

Setting this property to true (the default) makes the request eligible to run over cellular, subject to other considerations (including, but not limited to, the allowsCellularAccess property of the URLSessionConfiguration). Setting this value to false ensures that the request will never run over cellular.

See Also

Controlling Request Behavior

var timeoutInterval: TimeInterval

The request’s timeout interval, in seconds.

var httpShouldHandleCookies: Bool

A Boolean value that indicates whether the request should use the default cookie handling for the request.

var httpShouldUsePipelining: Bool

A Boolean value that indicates whether the request can continue transmitting data before receiving a response from an earlier transmission.