Hi . Is it possible, with Soup, to get a “Progression” of a request ? Like for a small payload it is absurd since it would go from 0 to 100 in the first step… But for a “file upload”, it is useful.
I would like to be able to show a progression of the upload to the user.
I searched the doc without succes. The closest thing I found was this ; Session — GNOME Python API mentionning “progress_callback” but it’s about it and no lead to folow.
Hey Take a look at the wrote_body_data signal on Soup.Message. It will be emitted and include the chunk size that got written until the body gets fully written. You’ll have to use those chunk sizes to calculate the total request progress.