Sample code for 30+ languages & platforms
Rust

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Rust Downloads

Rust

let http = chilkat::Http::new();
let url = "https://example.com/folder/page?lang=en&sort=asc#section2".to_string();
println!("{}", http.get_url_path(&url).unwrap_or_default());

// Output:

// /folder/page