init(excludeScheme:domain:path:query:excludeFragment:excludeIntermediates:caseSensitive:)
Creates a new parsing configuration with the default values.
Declaration
init(excludeScheme: Bool = true, domain: NEURLFilterManager.ParsingConfiguration.DomainOptions = DomainOptions(), path: NEURLFilterManager.ParsingConfiguration.PathOptions = PathOptions(), query: NEURLFilterManager.ParsingConfiguration.QueryOptions = QueryOptions(), excludeFragment: Bool = false, excludeIntermediates: Bool = false, caseSensitive: Bool = false)Parameters
- excludeScheme:
A Boolean value that indicates whether parsing should exclude the URL scheme. Defaults to
true. - domain:
Parsing options for the URL domain component.
- path:
Parsing options for the URL path component.
- query:
Parsing options for the URL query component.
- excludeFragment:
A Boolean value that indicates whether parsing should exclude the URL fragment. Defaults to
false. - excludeIntermediates:
A Boolean value that indicates whether parsing should exclude intermediate pattern combinations. Defaults to
false. - caseSensitive:
A Boolean value that indicates whether parsing should be case-sensitive. Defaults to
false.
Discussion
The configuration’s default behavior is as follows:
Parsing includes domain, path, query and fragment, and excludes scheme and the
wwwsubdomain.Parsing is case-insensitive.
Parsing enumerates all possible sub-URL combinations.