Swift
Swift
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Swift Downloads
func chilkatTest() {
var success: Bool = false
let http = CkoHttp()!
var url: String? = "https://example.com/folder/page?lang=en&sort=asc#section2"
print("\(http.getUrlPath(url: url)!)")
// Output:
// /folder/page
}