summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-07 16:44:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:18 +0200
commit74a4bd5ecd83ce1fde0dba8a642d3daaa99d916e (patch)
tree7e1f2c1e9e9bc604ddf8e436969982141c17ae3a /lib/http.h
parent591a6933da7140693fba8df958355b1929c81e4a (diff)
downloadcurl-74a4bd5ecd83ce1fde0dba8a642d3daaa99d916e.tar.gz
http2: store incoming h2 SETTINGS
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index a2f702d02..53d2bfeba 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -175,6 +175,13 @@ struct HTTP {
typedef int (*sending)(void); /* Curl_send */
typedef int (*recving)(void); /* Curl_recv */
+/* h2 settings for this connection */
+struct h2settings {
+ uint32_t max_concurrent_streams;
+ bool enable_push;
+};
+
+
struct http_conn {
#ifdef USE_NGHTTP2
#define H2_BINSETTINGS_LEN 80
@@ -195,6 +202,7 @@ struct http_conn {
/* this is a hash of all individual streams (SessionHandle structs) */
struct curl_hash streamsh;
+ struct h2settings settings;
#else
int unused; /* prevent a compiler warning */
#endif