Skip to main content

Request

Type Alias Request 

Source
pub(crate) type Request = Request<Targets>;

Aliased Type§

pub(crate) struct Request {
    pub id: DownloadId,
    pub url: String,
    pub folder: String,
    pub name: String,
    pub connections: i64,
    pub headers: Vec<String>,
    pub retries: i64,
    pub targets: Targets,
}

Fields§

§id: DownloadId§url: String§folder: String§name: String

The name to save the file as, made safe first; "" names it after the address.

§connections: i64

How many connections the call asked for; any number below one asks for one.

§headers: Vec<String>

Headers to send with each request, each written Name: value.

§retries: i64

How many times in a row a failed connection is tried again, when the failure may pass; any number below zero asks for none.

§targets: Targets