One Logo Pool Ball
NetworkExtension · IOS API REFERENCE

NEURLFilterManager.ParsingConfiguration.PathOptions

struct · iOS 27.0+ · SDK 27.1

struct PathOptions

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

Members (7)

get · iOS 27.0+

enumerateHierarchy

TypeScript
get enumerateHierarchy(): boolean
Swift declaration
var enumerateHierarchy: Bool

A Boolean value that indicates whether the parser walks the path hierarchy for matching.

set · iOS 27.0+

enumerateHierarchy

TypeScript
set enumerateHierarchy(value: boolean)
Swift declaration
var enumerateHierarchy: Bool

A Boolean value that indicates whether the parser walks the path hierarchy for matching.

init · iOS 27.0+

init

TypeScript
static init(excluded?: boolean, segments?: number, enumerateHierarchy?: boolean): NEURLFilterManager_ParsingConfiguration_PathOptions
Swift declaration
init(excluded: Bool = false, segments: UInt = 0, enumerateHierarchy: Bool = true)

Creates a new path options configuration with default values. The path options default behavior is as follows: * Parsing includes the path. * Parsing preserves all path segments. * Parsing enables path hierarchy enumeration.

get · iOS 27.0+

excluded

TypeScript
get excluded(): boolean
Swift declaration
var excluded: Bool

A Boolean value that indicates whether to exlude the path component from URL parsing. When this value is `true`, parsing ignores all other path options.

set · iOS 27.0+

excluded

TypeScript
set excluded(value: boolean)
Swift declaration
var excluded: Bool

A Boolean value that indicates whether to exlude the path component from URL parsing. When this value is `true`, parsing ignores all other path options.

get · iOS 27.0+

segments

TypeScript
get segments(): number
Swift declaration
var segments: UInt

The number of path levels to preserve when parsing. 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.

set · iOS 27.0+

segments

TypeScript
set segments(value: number)
Swift declaration
var segments: UInt

The number of path levels to preserve when parsing. 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.

Skipped declarations

No declarations were skipped in this snapshot.

All NetworkExtension types →