summaryrefslogtreecommitdiff
path: root/include/curl/curl.h
diff options
context:
space:
mode:
authorTiit Pikma <tiit.pikma@cyber.ee>2014-02-13 11:49:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-02-13 16:05:17 +0100
commitc021a60bccff0feddfec9d756cd65497eab60b39 (patch)
tree6fc993a8ae84809b12ddd97a3816d37d813ab549 /include/curl/curl.h
parentbcb32e915eb700d058e12b2f3bd8b103a16244d8 (diff)
downloadcurl-c021a60bccff0feddfec9d756cd65497eab60b39.tar.gz
transfer: make Expect: 100-continue timeout configurable.
Replaced the #define CURL_TIMEOUT_EXPECT_100 in transfer.c with the CURLOPT_EXPECT_100_TIMEOUT_MS option to make the timeout configurable.
Diffstat (limited to 'include/curl/curl.h')
-rw-r--r--include/curl/curl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index b2c9ee091..8038d8d25 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1577,6 +1577,10 @@ typedef enum {
/* Enable/disable TLS ALPN extension (http2 over ssl might fail without) */
CINIT(SSL_ENABLE_ALPN, LONG, 226),
+ /* Time to wait for a response to a HTTP request containing an
+ * Expect: 100-continue header before sending the data anyway. */
+ CINIT(EXPECT_100_TIMEOUT_MS, LONG, 227),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;