]> git.ipfire.org Git - thirdparty/curl.git/commit
request: eliminate request `getheader` bool, reverse `header` default
authorStefan Eissing <stefan@eissing.org>
Thu, 7 Aug 2025 09:29:10 +0000 (11:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Aug 2025 11:39:50 +0000 (13:39 +0200)
commitfd9429cc2979233030613a117cda52cc9bf0ce3c
tree7a82e26f4c19b243e5fb038b6975cdbadeaba4ae
parentc1372df2e2fa93d4435aeb50d068643b53194000
request: eliminate request `getheader` bool, reverse `header` default

Deduce that the transfer response expects headers by the protocol
handler implementing `write_resp_hd` callback. This eleminates the
`getheader` parameter in the `Curl_xfer_setup_*()` methods.

Add an implementation to RTSP for `write_resp_hd`, joining the HTTP
protocol in the only handlers having it.

Reverse the default of request's `header` bit that signals that headers
are expected. Default is now FALSE, set to TRUE when setting up the
transfer by presence of `write_resp_hd` in the protocol handler.

Closes #18218
16 files changed:
lib/curl_rtmp.c
lib/dict.c
lib/ftp.c
lib/gopher.c
lib/http.c
lib/imap.c
lib/openldap.c
lib/pop3.c
lib/request.c
lib/request.h
lib/rtsp.c
lib/transfer.c
lib/transfer.h
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vssh/wolfssh.c