Structure
Timeout
public struct Timeout: Component
A struct defining when the request
for a given endpoint can timeout.
Defaults to 60.
Relationships
Conforms To
ComponentA
protocoldefining a unique identifier for a specific request component.
Initializers
init(_:)
public init(_ timeoutInterval: TimeInterval)
Init.
Parameters
| Name | Type | Description |
|---|---|---|
| timeoutInterval | TimeInterval |
A |
Properties
defaultValue
public static var defaultValue: Timeout
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 |