Sample code for 30+ languages & platforms
Swift

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Swift Downloads

Swift

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

}