options: API for meta-data about easy options

const struct curl_easyoption *curl_easy_option_by_name(const char *name);

 const struct curl_easyoption *curl_easy_option_by_id (CURLoption id);

 const struct curl_easyoption *
 curl_easy_option_next(const struct curl_easyoption *prev);

The purpose is to provide detailed enough information to allow for
example libcurl bindings to get option information at run-time about
what easy options that exist and what arguments they expect.

Assisted-by: Jeroen Ooms
Closes #5365
This commit is contained in:
Daniel Stenberg 2020-08-26 08:30:38 +02:00
parent 9ee5701f12
commit 6ebe63fac2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
22 changed files with 1019 additions and 58 deletions

31
tests/data/test1911 Normal file
View file

@ -0,0 +1,31 @@
<testcase>
<info>
<keywords>
curl_easy_option
</keywords>
</info>
# Server-side
<reply>
</data>
</reply>
# Client-side
<client>
<server>
none
</server>
<name>
verify that curl_easy_setopt() rejects too long string inputs
</name>
<tool>
lib1911
</tool>
</client>
# Verify data after the test has been "shot"
<verify>
</verify>
</testcase>