ext/curl: add support for CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0)#22408
Closed
Ayesh wants to merge 1 commit into
Closed
ext/curl: add support for CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0)#22408Ayesh wants to merge 1 commit into
CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0)#22408Ayesh wants to merge 1 commit into
Conversation
c970eae to
c678bc2
Compare
c678bc2 to
53c2446
Compare
Adds support for `CURLINFO_SIZE_DELIVERED`[^1] when built with libcurl >= 8.20.0. In `curl_getinfo()`, the `size_delivered` key or the direct return value when the `$option` parameter is set to `CURLINFO_SIZE_DELIVERED` returns the number of bytes delivered. For transfers that do not use compression (`CURLOPT_ACCEPT_ENCODING`), this value will be the same as `CURLINFO_SIZE_DOWNLOAD`. For encoded transfers, the `CURLINFO_SIZE_DELIVERED` value will be the uncompressed size while `CURLINFO_SIZE_DOWNLOAD` will be the compressed size over network. [^1]: https://github.com/curl/curl/blob/curl-8_20_0/docs/libcurl/opts/CURLINFO_SIZE_DELIVERED.md
53c2446 to
cbc72c8
Compare
devnexen
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for
CURLINFO_SIZE_DELIVEREDwhen built with libcurl >= 8.20.0.In
curl_getinfo(), thesize_deliveredkey or the direct return value when the$optionparameter is set toCURLINFO_SIZE_DELIVEREDreturns the number of bytes delivered.For transfers that do not use compression (
CURLOPT_ACCEPT_ENCODING), this value will be the same asCURLINFO_SIZE_DOWNLOAD. For encoded transfers, theCURLINFO_SIZE_DELIVEREDvalue will be the uncompressed size whileCURLINFO_SIZE_DOWNLOADwill be the compressed size over network.