Storage Documentation

Structure Service

public struct Service: Component  

A struct defining the request network service type for a specific endpoint. /// Defaults to .default.

%111 Service Service Component Component Service->Component

Conforms To

Component

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

Initializers

init(_:​)

public init(_ networkServiceType: URLRequest.NetworkServiceType)  

Init.

Parameters

network​Service​Type URLRequest.​Network​Service​Type

A URLRequest.NetworkServiceType.

Properties

default​Value

public static var defaultValue: Service  

The default value when no cached component can be found.

value

public let value: URLRequest.NetworkServiceType

The request network service type.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.