Function file_with_meta::build_req[][src]

pub fn build_req<P1, P2>(
    orig_req: Request,
    dst: P1,
    dst_meta: P2
) -> (Request, Option<FileHttpMetadata>) where
    P1: AsRef<Path>,
    P2: AsRef<Path>, 
Expand description

Add the “If-Modified-Since” and/or “If-None-Match” headers to an HTTP request if the relevant fields (“Last-Modified” and “ETag” respectively) have been returned in the last response from the server when the file has been downloaded.