StorageCrypto Documentation

Structure Expensive

public struct Expensive: Component  

A struct defining whether the request for a given endpoint is considered expensive. Defaults to true.

%131 Expensive Expensive Component Component Expensive->Component

Conforms To

Component

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

Initializers

init(_:​)

public init(_ allowsExpensiveNetworkAccess: Bool)  

Init.

Parameters

allows​Expensive​Network​Access Bool

A Bool representing whether the request is expensive to run.

Properties

default​Value

public static var defaultValue: Expensive  

The default value when no cached component can be found.

value

public let value: Bool

A Bool representing whether the request i's expensive to run.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.