Skip to main content

resign_streaming_request

Function resign_streaming_request 

Source
pub fn resign_streaming_request(
    req: &mut RequestHeader,
    region: &str,
    access_key: &str,
    secret_key: &str,
    ts: DateTime<Utc>,
) -> Result<(), Box<dyn Error>>
Expand description

Re-sign an upstream request header for a STREAMING-AWS4-HMAC-SHA256-PAYLOAD upload.

Updates the Authorization, x-amz-date, and x-amz-content-sha256 headers in-place. Returns the seed signature that must be passed to StreamingState::new.