Skip to main content

builder

Function builder 

Source
pub fn builder(url: impl Into<String>) -> DownloadBuilder
Expand description

Create a DownloadBuilder for a single URL — the recommended API entry point.

§Example

use kget::KgetError;

let result = kget::builder("https://example.com/file.zip")
    .output("./downloads/")
    .connections(4)
    .sha256("abc123...")
    .download()?;