Skip to main content

sign_request

Function sign_request 

Source
pub(crate) async fn sign_request(
    request: &mut RequestHeader,
    cos_map: &CosMapItem,
) -> Result<(), Box<dyn Error>>
Expand description

Sign the request with the AWS V4 signature

§Arguments

  • request - The request to sign
  • cos_map - The COS map item containing the credentials

§Returns

  • Ok(()) if the request was signed successfully
  • Err if there was an error signing the request