]> git.ipfire.org Git - thirdparty/curl.git/commit
mime: add client reader
authorStefan Eissing <stefan@eissing.org>
Thu, 29 Feb 2024 09:12:39 +0000 (10:12 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Mar 2024 23:17:37 +0000 (00:17 +0100)
commit0ba47146f7ff3dedcf35f568be57d41d47c5bdfe
tree37567e74509bbfcacaa3c8f852753108fe25bc3a
parent6c632b216b4850253c15084fa3f1f71352931177
mime: add client reader

Add `mime` client reader. Encapsulates reading from mime parts, getting
their length, rewinding and unpausing.

- remove special mime handling from sendf.c and easy.c
- add general "unpause" method to client readers
- use new reader in http/imap/smtp
- make some mime functions static that are now only used internally

In addition:
- remove flag 'forbidchunk' as no longer needed

Closes #13039
12 files changed:
lib/easy.c
lib/http.c
lib/http_chunks.c
lib/imap.c
lib/mime.c
lib/mime.h
lib/request.c
lib/request.h
lib/rtsp.c
lib/sendf.c
lib/sendf.h
lib/smtp.c