37
37
#include " curl_form.h"
38
38
#include " curl_easy_info.h"
39
39
40
+
40
41
#define CURLCPP_DEFINE_OPTION (opt, value_type )\
41
42
template <> struct option_t <opt> {\
42
43
using type = value_type;\
@@ -139,7 +140,7 @@ namespace curl {
139
140
// TLS session info that can be used for further processing.
140
141
CURLCPP_DEFINE_INFO (CURLINFO_TLS_SSL_PTR,struct curl_tlssessioninfo *);
141
142
#endif
142
- // Whether or not a time conditional was met.
143
+ // Whether a time conditional was met.
143
144
CURLCPP_DEFINE_INFO (CURLINFO_CONDITION_UNMET,long );
144
145
// RTSP session ID.
145
146
CURLCPP_DEFINE_INFO (CURLINFO_RTSP_SESSION_ID,char *);
@@ -205,7 +206,7 @@ namespace curl {
205
206
CURLCPP_DEFINE_OPTION (CURLOPT_USERAGENT, const char *);
206
207
/* If the download receives less than "low speed limit" bytes/second
207
208
* during "low speed time" seconds, the operations is aborted.
208
- * You could i.e if you have a pretty high speed connection, abort if
209
+ * You could, for example, if you have a pretty high speed connection, abort if
209
210
* it is less than 2000 bytes/sec during 20 seconds.
210
211
*/
211
212
/* Set the "low speed limit" */
@@ -229,7 +230,7 @@ namespace curl {
229
230
list is also used for RTSP (in spite of its name) */
230
231
CURLCPP_DEFINE_OPTION (CURLOPT_HTTPHEADER, const struct curl_slist *);
231
232
232
- /* This points to a linked list of post entries, struct curl_httppost */
233
+ /* This points to a linked list of post- entries, struct curl_httppost */
233
234
CURLCPP_DEFINE_OPTION (CURLOPT_HTTPPOST, const struct curl_httppost *);
234
235
235
236
/* name of the file keeping your private SSL-certificate */
@@ -321,7 +322,7 @@ namespace curl {
321
322
/* size of the POST input data, if strlen() is not good to use */
322
323
CURLCPP_DEFINE_OPTION (CURLOPT_POSTFIELDSIZE, long );
323
324
324
- /* tunnel non-http operations through a HTTP proxy */
325
+ /* tunnel non-http operations through an HTTP proxy */
325
326
CURLCPP_DEFINE_OPTION (CURLOPT_HTTPPROXYTUNNEL, long );
326
327
327
328
/* Set the interface string to use as outgoing network interface */
@@ -460,7 +461,7 @@ namespace curl {
460
461
CURLCPP_DEFINE_OPTION (CURLOPT_BUFFERSIZE, long );
461
462
462
463
/* Instruct libcurl to not use any signal/alarm handlers, even when using
463
- timeouts. This option is useful for multi-threaded applications.
464
+ timeouts. This option is useful for multithreaded applications.
464
465
See libcurl-the-guide for more background information. */
465
466
CURLCPP_DEFINE_OPTION (CURLOPT_NOSIGNAL, long );
466
467
@@ -488,7 +489,7 @@ namespace curl {
488
489
CURLCPP_DEFINE_OPTION (CURLOPT_UNRESTRICTED_AUTH, long );
489
490
490
491
/* Specifically switch on or off the FTP engine's use of the EPRT command (
491
- it also disables the LPRT attempt). By default, those ones will always be
492
+ it also disables the LPRT attempt). By default, those will always be
492
493
attempted before the good old traditional PORT command. */
493
494
CURLCPP_DEFINE_OPTION (CURLOPT_FTP_USE_EPRT, long );
494
495
@@ -526,7 +527,7 @@ namespace curl {
526
527
527
528
/* Set this option to one of the CURL_IPRESOLVE_* defines (see below) to
528
529
tell libcurl to resolve names to those IP versions only. This only has
529
- affect on systems with support for more than one, i.e IPv4 _and_ IPv6. */
530
+ affect on systems with support for more than one, i.e. IPv4 _and_ IPv6. */
530
531
CURLCPP_DEFINE_OPTION (CURLOPT_IPRESOLVE, long );
531
532
532
533
/* Set this option to limit the size of a file that will be downloaded from
@@ -572,7 +573,7 @@ namespace curl {
572
573
573
574
/* When FTP over SSL/TLS is selected (with CURLOPT_USE_SSL), this option
574
575
can be used to change libcurl's default action which is to first try
575
- "AUTH SSL" and then "AUTH TLS" in this order, and proceed when a OK
576
+ "AUTH SSL" and then "AUTH TLS" in this order, and proceed when an OK
576
577
response has been received.
577
578
578
579
Available parameters are:
@@ -595,7 +596,7 @@ namespace curl {
595
596
/* ignore Content-Length */
596
597
CURLCPP_DEFINE_OPTION (CURLOPT_IGNORE_CONTENT_LENGTH, long );
597
598
598
- /* Set to non-zero to skip the IP address received in a 227 PASV FTP server
599
+ /* Set to non-zero in order to skip the IP address received in a 227 PASV FTP server
599
600
response. Typically used for FTP-SSL purposes but is not restricted to
600
601
that. libcurl will then instead use the same IP address it used for the
601
602
control connection. */
@@ -680,7 +681,7 @@ namespace curl {
680
681
CURLCPP_DEFINE_OPTION (CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, const char *);
681
682
682
683
/* Callback function for opening socket (instead of socket(2)). Optionally,
683
- callback is able change the address or refuse to connect returning
684
+ callback is able to change the address or refuse to connect returning
684
685
CURL_SOCKET_BAD. The callback should have type
685
686
curl_opensocket_callback */
686
687
CURLCPP_DEFINE_OPTION (CURLOPT_OPENSOCKETFUNCTION, curl_socket_t (*)(void *clientp,
@@ -926,7 +927,7 @@ namespace curl {
926
927
/* Enable/disable TLS ALPN extension (http2 over ssl might fail without) */
927
928
CURLCPP_DEFINE_OPTION (CURLOPT_SSL_ENABLE_ALPN, long );
928
929
929
- /* Time to wait for a response to a HTTP request containing an
930
+ /* Time to wait for a response to an HTTP request containing an
930
931
* Expect: 100-continue header before sending the data anyway. */
931
932
CURLCPP_DEFINE_OPTION (CURLOPT_EXPECT_100_TIMEOUT_MS, long );
932
933
#endif
0 commit comments