]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_nextheader.md: a new transfer invalidates 'prev'
authorDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jan 2026 12:29:30 +0000 (13:29 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jan 2026 13:11:15 +0000 (14:11 +0100)
Closes #20285

docs/libcurl/curl_easy_nextheader.md

index c3dd223b8c8cffb4b3bfb44e1ce9cdd0672c1055..42314996b939cf7bf9bcaa85cd2901d2c280cdfb 100644 (file)
@@ -61,6 +61,10 @@ The memory for the struct this points to, is owned and managed by libcurl and
 is associated with the easy handle. Applications must copy the data if they
 want it to survive subsequent API calls or the life-time of the easy handle.
 
+The *prev* pointer is only valid until another transfer is done using the
+*easy* handle. Once a new transfer has started, a new *prev* must be retrieved
+by calling curl_easy_nextheader(3) again with NULL as the fourth argument.
+
 # %PROTOCOLS%
 
 # EXAMPLE