<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension18NEURLFilterManagerC20ParsingConfigurationV"
  },
  "title" : "NEURLFilterManager.ParsingConfiguration"
}
-->

# NEURLFilterManager.ParsingConfiguration

A type to configure the filter’s parser behavior.

```
struct ParsingConfiguration
```

## Overview

Use this property to control which URL components to exclude, and to customize parsing behavior during sub-URL enumeration.
By default, filtering is case-insensitive and includes all components except the scheme and the `www` subdomain.
The filter enumerates all possible sub-URL combinations by walking up both the domain hierarchy and path hierarchy, including intermediate results.

For example, given a domain of `a.b.c.com`, walking the domain hierarchy includes `a.b.c.com`, `b.c.com` and `c.com`. For a path of `/a/b/c`, walking the path hierarchy includes `/a`, `/a/b`, and `/a/b/c`. This also allows for intermediate pattern combinations. For example, `example.com/a/b/c?id=123` includes `example.com`, `example.com/a`, `example.com/a/b`, `example.com/a/b/c`, and `example.com/a/b/c?id=123`.

## Topics

### Creating a configuration

[`init(excludeScheme: Bool, domain: NEURLFilterManager.ParsingConfiguration.DomainOptions, path: NEURLFilterManager.ParsingConfiguration.PathOptions, query: NEURLFilterManager.ParsingConfiguration.QueryOptions, excludeFragment: Bool, excludeIntermediates: Bool, caseSensitive: Bool)`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/init(excludeScheme:domain:path:query:excludeFragment:excludeIntermediates:caseSensitive:))

Creates a new parsing configuration with the default values.

### Working with configuration options

[`var excludeScheme: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/excludeScheme)

A Boolean value that indicates whether parsing should exclude the URL scheme.

[`var domain: NEURLFilterManager.ParsingConfiguration.DomainOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/domain)

Parsing options for the URL domain component.

[`struct DomainOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions)

A type that represents options for parsing the URL domain component.

[`var path: NEURLFilterManager.ParsingConfiguration.PathOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/path)

Parsing options for the URL path component.

[`struct PathOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/PathOptions)

A type that represents options for parsing the URL path component.

[`var query: NEURLFilterManager.ParsingConfiguration.QueryOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/query)

Parsing options for the URL query component.

[`struct QueryOptions`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/QueryOptions)

A type that represents options for parsing the URL query component.

[`var excludeFragment: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/excludeFragment)

A Boolean value that indicates whether parsing should exclude the URL fragment.

[`var excludeIntermediates: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/excludeIntermediates)

A Boolean value that indicates whether parsing should exclude the URL fragment.

[`var caseSensitive: Bool`](/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/caseSensitive)

A Boolean value that indicates whether parsing should be case-sensitive.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)