Static Methodhummingbird 2.3.0Hummingbird
path(_:)
Match to string
RouterPath.swift:72static func path(_ path: Substring) -> RouterPath.Element
Other members in extension
Types
Show implementation details (1)
Hide implementation details
Type members
static var null: `Self`
static var recursiveWildcard: `Self`
Always match and everything after
static var wildcard: `Self`
Always match
static func capture(Substring
) -> RouterPath.Element Store parameter
static func prefixCapture(suffix: Substring, parameter: Substring
) -> RouterPath.Element Match suffix and capture prefix eg *.jpg
static func prefixWildcard(Substring
) -> RouterPath.Element Match suffix eg *.jpg
static func suffixCapture(prefix: Substring, parameter: Substring
) -> RouterPath.Element Match prefix and capture suffix eg file.*
static func suffixWildcard(Substring
) -> RouterPath.Element Match prefix eg file.*
static func == (lhs: Element, rhs: some StringProtocol
) -> Bool Element a path String
static func ~= (lhs: Element, rhs: some StringProtocol
) -> Bool Match element with string
Instance members
var description: String
A textual representation of the RouterPath component
let value: _Internal
func lowercased(
) -> RouterPath.Element Return lowercased version of RouterPath component