Instance Property

allowsCellularAccess

A Boolean value indicating whether the request is allowed to use the built-in cellular radios to satisfy the request.

Declaration

var allowsCellularAccess: Bool { get set }

Discussion

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

See Also

Controlling Request Behavior

var timeoutInterval: TimeInterval

The timeout interval of the request.

var httpShouldHandleCookies: Bool

A Boolean value indicating whether cookies will be sent with and set for this request.

var httpShouldUsePipelining: Bool

A Boolean value indicating whether the request should transmit before the previous response is received.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software