Structure
Cellular
public struct Cellular: Component
A struct
defining whether the request
for a given endpoint can run on cellular or not.
Defaults to true
.
Relationships
Conforms To
Component
A
protocol
defining a unique identifier for a specific request component.
Initializers
init(_:)
public init(_ allowsCellularAccess: Bool)
Init.
Parameters
Name | Type | Description |
---|---|---|
allowsCellularAccess | Bool |
A |
Properties
defaultValue
public static var defaultValue: Cellular
The default value when no cached component can be found.
Methods
update(_:)
public func update(_ request: inout URLRequest)
Update a given URLRequest
.
Parameters
Name | Type | Description |
---|---|---|
request | inout URLRequest |
A mutable |