]> granicus.if.org Git - curl/commit
http: Implement trailing headers for chunked transfers
authorAyoub Boudhar <a.boudhar@outlook.com>
Thu, 6 Dec 2018 09:18:03 +0000 (10:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Dec 2018 09:10:48 +0000 (10:10 +0100)
commitf464535bfdd9a83140d8a13c3fe3d937239d1c2a
treeda330b66fe21c30ef5821436fa53a56e5946b504
parent4531b299cc4771e6d2428fb22c1305f75db71666
http: Implement trailing headers for chunked transfers

This adds the CURLOPT_TRAILERDATA and CURLOPT_TRAILERFUNCTION
options that allow a callback based approach to sending trailing headers
with chunked transfers.

The test server (sws) was updated to take into account the detection of the
end of transfer in the case of trailing headers presence.

Test 1591 checks that trailing headers can be sent using libcurl.

Closes #3350
17 files changed:
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_TRAILERDATA.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/http.c
lib/http.h
lib/setopt.c
lib/transfer.c
lib/urldata.h
tests/data/Makefile.inc
tests/data/test1591 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1591.c [new file with mode: 0644]
tests/libtest/mk-lib1521.pl
tests/server/sws.c