fn add_date_and_sign(&self, headers: &mut HeaderMap, bucket: &str, object: &str) {
        // date http header
        let now = Utc::now().format("%a, %d %b %Y %T GMT").to_string();
        headers.insert(DATE, now.parse().unwrap());
        // Authorization http header
        let authorization = oss_sign_header("GET", bucket, object, &headers);
        headers.insert("Authorization", authorization.parse().unwrap());
    }
/// add DATE HTTP HEADER and sign with Authorization HTTP header
add DATE HTTP HEADER and sign with Authorization HTTP header
add DATE HTTP HEADER and sign with Authorization HTTP header
fn add_date_and_sign(&self, headers: &mut HeaderMap, bucket: &str, object: &str) {
        // date http header
        let now = Utc::now().format("%a, %d %b %Y %T GMT").to_string();
        headers.insert(DATE, now.parse().unwrap());
        // Authorization http header
        let authorization = oss_sign_header("GET", bucket, object, &headers);
        headers.insert("Authorization", authorization.parse().unwrap());
    }
fn add_date_and_sign ( & self , headers : & mut HeaderMap , bucket : & str , object : & str ) { // date http header let now = Utc :: now ( ) . format ( " " ) . to_string ( ) ; headers . insert ( DATE , now . parse ( ) . unwrap ( ) ) ; // Authorization http header let authorization = oss_sign_header ( " " , bucket , object , & headers ) ; headers . insert ( " " , authorization . parse ( ) . unwrap ( ) ) ; }
add DATE HTTP HEADER and sign with Authorization HTTP header
add DATE HTTP HEADER and sign with Authorization HTTP header
&self
headers
&mut HeaderMap
bucket
&str
object
&str