Storage Documentation

Structure Constrained

public struct Constrained: Component  

A struct defining whether the request for a given endpoint should run on a constrained network. Defaults to true.

%127 Constrained Constrained Component Component Constrained->Component

Conforms To

Component

A protocol defining a unique identifier for a specific request component.

Initializers

init(_:​)

public init(_ allowsconstrained: Bool)  

Init.

Parameters

allowsconstrained Bool

A Bool representing whether it can run on constrained networks or not.

Properties

default​Value

public static var defaultValue: Constrained  

The default value when no cached component can be found.

value

public let value: Bool

A Bool representing whether it can run on constrained networks or not.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.