StorageCrypto Documentation

Structure Method

public struct Method: Component  

A struct defining the request HTTP method for a given endpoint.

%3 Method Method Component Component Method->Component

Conforms To

Component

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

Initializers

init(_:​)

public init(_ method: HTTPMethod)  

Init.

Parameters

method HTTPMethod

The request HTTP method for a given endpoint.

Properties

default​Value

public static var defaultValue: Method  

The default value when no cached component can be found.

value

public let value: HTTPMethod

The request HTTP method for a given endpoint.

Methods

update(_:​)

public func update(_ request: inout URLRequest)  

Update a given URLRequest.

Parameters

request inout URLRequest

A mutable URLRequest.