Instance Method
deletePathExtension()
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Returns a URL constructed by removing any path extension.
mutating func deletePathExtension()
Discussion
If the URL has an empty path (e.g., http://www.example.com), then this function will do nothing.