Storage Documentation

Structure Timeout

public struct Timeout: Component  

A struct defining when the request for a given endpoint can timeout. Defaults to 60.

%65 Timeout Timeout Component Component Timeout->Component

Conforms To

Component

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

Initializers

init(_:​)

public init(_ timeoutInterval: TimeInterval)  

Init.

Parameters

timeout​Interval Time​Interval

A TimeInterval representing the time before the request times out.

Properties

default​Value

public static var defaultValue: Timeout  

The default value when no cached component can be found.

value

public let value: TimeInterval

The time before the request times out.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.