pub async fn wrap_streaming_body(
session: &mut Session,
upstream_request: &mut RequestHeader,
region: &str,
access_key: &str,
secret_key: &str,
) -> Result<(), Box<dyn Error>>Expand description
Build a stream whose items are already wrapped in “AWS-chunk-signed” envelopes.
body- raw payload implementingAsyncReadsigning_key- result of the usualsigning_key()stepscope- e.g."20250501/eu-west-3/s3/aws4_request"ts- theX-Amz-Dateyou put in the header (YYYYMMDDThhmmssZ)seed_sig- theSignature=value you computed for the headers (the one that goes intoAuthorization:)
┌──── header chunk ────┐┌── data ─┐┌─ CRLF ─┐
<hex-len>;chunk-signature=<sig>\r\n<bytes>\r\nThe very last frame is
0;chunk-signature=<final-sig>\r\n\r\n