]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: readwrite improvements
authorStefan Eissing <stefan@eissing.org>
Mon, 6 Nov 2023 16:06:06 +0000 (17:06 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Nov 2023 07:03:45 +0000 (08:03 +0100)
commit1cd2f0072fa482e25baa2051f4d2b373424d6d4e
tree9354b6c2b63e66a1977bddaa7663c59229284ba1
parentd9e7643ceda9a29a19e45b7040b57854ff9d4ba0
transfer: readwrite improvements

- changed header/chunk/handler->readwrite prototypes to accept `buf`,
  `blen` and a `pconsumed` pointer. They now get the buffer to work on
  and report back how many bytes they consumed
- eliminated `k->str` in SingleRequest
- improved excess data handling to properly calculate with any body data
  left in the headerb buffer
- eliminated `k->badheader` enum to only be a bool

Closes #12283
lib/cf-h1-proxy.c
lib/http.c
lib/http.h
lib/http_chunks.c
lib/http_chunks.h
lib/rtsp.c
lib/transfer.c
lib/urldata.h