Storage Documentation

Structure Path

public struct Path  

A struct defining the path component for a given endpoint.

Initializers

init(_:​)

public init(_ path: String)  

Init.

Parameters

path String

The path component for a given endpoint.

Methods

inherit(from:​)

public mutating func inherit(from original: Path)  

Inherit some previously cached value. Default implementation simply replaces the current value.

Path("https://github.com")
Path("sbertix")
Path("ComposableRequest")

would be resolved to the repo path.

Parameters

original Path

The original value for the cached component.