scheme(_:)
Modifies a parse strategy to parse a URL’s scheme component in accordance with the provided behavior.
Declaration
func scheme(_ strategy: URL.ParseStrategy.ComponentParseStrategy<String> = .required) -> URL.ParseStrategyParameters
- strategy:
A strategy for parsing the scheme component.
Return Value
A modified URL.ParseStrategy that incorporates the specified behavior.