mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
TODO: remove "Typesafe curl_easy_setopt()"
I don't consider this a serious TODO item
This commit is contained in:
parent
e55bee70f1
commit
d8888bfc33
18
docs/TODO
18
docs/TODO
@ -30,7 +30,6 @@
|
||||
1.11 minimize dependencies with dynamically loaded modules
|
||||
1.12 updated DNS server while running
|
||||
1.13 c-ares and CURLOPT_OPENSOCKETFUNCTION
|
||||
1.14 Typesafe curl_easy_setopt()
|
||||
1.15 Monitor connections in the connection pool
|
||||
1.16 Try to URL encode given URL
|
||||
1.17 Add support for IRIs
|
||||
@ -300,23 +299,6 @@
|
||||
|
||||
See https://github.com/curl/curl/issues/2734
|
||||
|
||||
1.14 Typesafe curl_easy_setopt()
|
||||
|
||||
One of the most common problems in libcurl using applications is the lack of
|
||||
type checks for curl_easy_setopt() which happens because it accepts varargs
|
||||
and thus can take any type.
|
||||
|
||||
One possible solution to this is to introduce a few different versions of the
|
||||
setopt version for the different kinds of data you can set.
|
||||
|
||||
curl_easy_set_num() - sets a long value
|
||||
|
||||
curl_easy_set_large() - sets a curl_off_t value
|
||||
|
||||
curl_easy_set_ptr() - sets a pointer
|
||||
|
||||
curl_easy_set_cb() - sets a callback PLUS its callback data
|
||||
|
||||
1.15 Monitor connections in the connection pool
|
||||
|
||||
libcurl's connection cache or pool holds a number of open connections for the
|
||||
|
Loading…
x
Reference in New Issue
Block a user