pub fn build_req<P1, P2>(
orig_req: Request,
dst: P1,
dst_meta: P2,
) -> Result<(Request, Option<FileHttpMetadata>), Error>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.
§Errors
Propagates errors from match_meta.