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

# segments

The number of path levels to preserve when parsing.

```
var segments: UInt
```

## Discussion

With a path of `/a/b/c/d`, setting `segments` to `2` keeps `/a/b`.

Use a value of `0` to keep all path segments.

---

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)