[−][src]Module manic::downloader
This module is the main part of the crate
Functions
compare_sha | Compare SHA256 of the data to the given sum, will return an error if the sum is not equal to the data's |
download | Download the file |
download_and_verify | Used to download and verify against a SHA256 sum, returns an error if the connection fails or if the sum doesn't match the one provided |
download_verify_and_save | Used to download, save to a file and verify against a SHA256 sum, returns an error if the connection fails or if the sum doesn't match the one provided |
get_filename | Get filename from the url, returns an error if the url contains no filename |
get_length | Get the content-length header using a head request |