curl-curl/include/curl
Jay Satiro 6d75115406 lib: add CURL_WRITEFUNC_ERROR to signal write callback error
Prior to this change if the user wanted to signal an error from their
write callbacks they would have to use logic to return a value different
from the number of bytes (nmemb) passed to the callback. Also, the
inclination of some users has been to just return 0 to signal error,
which is incorrect as that may be the number of bytes passed to the
callback.

To remedy this the user can now return CURL_WRITEFUNC_ERROR instead.

Ref: https://github.com/curl/curl/issues/9873

Closes https://github.com/curl/curl/pull/9874
2022-11-10 03:13:58 -05:00
..
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl.h lib: add CURL_WRITEFUNC_ERROR to signal write callback error 2022-11-10 03:13:58 -05:00
curlver.h RELEASE-NOTES: synced 2022-11-08 10:29:17 +01:00
easy.h headers: add endif comments 2022-11-09 00:36:33 +01:00
header.h header: define public API functions as extern c 2022-09-08 11:54:32 -04:00
Makefile.am ws: initial websockets support 2022-09-09 15:11:14 +02:00
mprintf.h headers: add endif comments 2022-11-09 00:36:33 +01:00
multi.h misc: spelling fixes 2022-08-31 14:31:01 +00:00
options.h misc: null-terminate 2022-09-17 23:19:29 +02:00
stdcheaders.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
system.h system.h: support 64-bit curl_off_t for NonStop 32-bit 2022-10-27 16:55:44 -04:00
typecheck-gcc.h style: use space after comment start and before comment end 2022-10-30 22:31:29 +01:00
urlapi.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
websockets.h websockets: remodeled API to support 63 bit frame sizes 2022-10-07 12:50:58 +02:00