ConfigurationPatternConvertible
public protocol ConfigurationPatternConvertible
A type that can serve as a URL matcher for service configuration.
Siesta provides implementations of this protocol for String
(for glob-based matching) and Resource
(to configure
one specific resource).
See also
Service.configure(...)
See also
String.configurationPattern(for:)
See also
Resource.configurationPattern(for:)
-
Turns the receiver into a predicate that matches URLs.
Declaration
Swift
func configurationPattern(for service: Service) -> (URL) -> Bool
-
A logging-friendly description of the receiver when it acts as a URL pattern.
Declaration
Swift
var configurationPatternDescription: String { get }