aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-30 14:26:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-30 14:26:00 +0100
commita878cb305650ccd25f205cbbdc44bb01e722a25d (patch)
tree77ff9281476421cacfdc86a19395ff95c5be7426 /lib/http.h
parent0e113070579535c08ef734b319df08cdfbefbba6 (diff)
http2: do the POST Upgrade dance properly
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index 8d3f9d0d0..228e375eb 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -151,7 +151,10 @@ struct HTTP {
struct http_conn {
#ifdef USE_NGHTTP2
+#define H2_BINSETTINGS_LEN 80
nghttp2_session *h2;
+ uint8_t binsettings[H2_BINSETTINGS_LEN];
+ size_t binlen; /* length of the binsettings data */
char *mem; /* points to a buffer in memory to store or read from */
size_t size; /* size of the buffer 'mem' points to */
ssize_t nread; /* how much data that was sent/recv by the HTTP2 engine */