lib: add CURLINFO_SIZE_DELIVERED

This commit is contained in:
Daniel Stenberg 2026-03-02 22:32:56 +01:00
parent da0597d07d
commit 69c6cda944
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 84 additions and 1 deletions

View file

@ -414,6 +414,9 @@ static CURLcode getinfo_offt(struct Curl_easy *data, CURLINFO info,
case CURLINFO_FILETIME_T:
*param_offt = (curl_off_t)data->info.filetime;
break;
case CURLINFO_SIZE_DELIVERED:
*param_offt = data->progress.deliver;
break;
case CURLINFO_SIZE_UPLOAD_T:
*param_offt = data->progress.ul.cur_size;
break;