Expand description
§About
Rust library for simple downloading
§Usage
// Create a client
let download = dnld::Client::new("dnld").unwrap();
// Download a URL to a string
let url = "https://server.tld/path/to/file";
//let contents = download.to_string(url).unwrap();
// Download a URL to a file
let dir = std::path::Path::new(".");
//let path = download.to_file(url, Some(&dir)).unwrap();§Changelog
Please find the CHANGELOG.md in the repository.
Structs§
Functions§
- url_
filename - Get the filename from a
Url