summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-09-18 22:43:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-01-29 10:24:05 +0100
commit53940f883450d1976105677adda41696e5094602 (patch)
treee1f34d2502c216717decf301a9282c213812555d /lib/http.h
parent8d3608f2ad29bb65ce0926a45b46ff29902c279f (diff)
downloadcurl-53940f883450d1976105677adda41696e5094602.tar.gz
http2: switch recv/send functions to http2 ones after 101
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index 82a7b5008..8d3f9d0d0 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -152,6 +152,9 @@ struct HTTP {
struct http_conn {
#ifdef USE_NGHTTP2
nghttp2_session *h2;
+ 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 */
#else
int unused; /* prevent a compiler warning */
#endif