Closed chenanghui closed 3 months ago
The PutObject API accepts an AsyncSequence of ByteBuffers. You could break up the buffer you are sending into an AsyncSequence of buffers and then use map
to track the buffers the HTTPClient is reading from this sequence.
Alternatively instead of map you could use something like this https://github.com/soto-project/soto/blob/main/Sources/Soto/Extensions/S3/ReportSizeByteBufferSequence.swift
PutObjectRequest API how to get progress