summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-09-07 13:01:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-09-07 13:01:43 +0200
commit4344fa926ae07bdd9530370b213505c894d10abb (patch)
treeb292bb45d6c67a246178516550a63dd3044b62d0 /lib/http.h
parent61672bde441cf67c1250a9a66f902700d9d95ed4 (diff)
downloadcurl-4344fa926ae07bdd9530370b213505c894d10abb.tar.gz
http2: actually init nghttp2 and send HTTP2-Settings properly
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index ad2def81b..b0b37b6ae 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -21,8 +21,14 @@
* KIND, either express or implied.
*
***************************************************************************/
+#include "curl_setup.h"
+
#ifndef CURL_DISABLE_HTTP
+#ifdef USE_NGHTTP2
+#include <nghttp2/nghttp2.h>
+#endif
+
extern const struct Curl_handler Curl_handler_http;
#ifdef USE_SSL
@@ -142,6 +148,12 @@ struct HTTP {
points to an allocated send_buffer struct */
};
+struct http_conn {
+#ifdef USE_NGHTTP2
+ nghttp2_session *h2;
+#endif
+};
+
CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
struct connectdata *conn,
ssize_t *nread,