aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-12 11:10:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-12 22:30:52 +0200
commit368d444cc6d46d18747197d30dc483e93d53d8b7 (patch)
tree49af0cf289827c5828d57d11e6c39190e0f12403 /lib/http.h
parent1a2df1518ad8653f248e8e9de47f28448d2dc399 (diff)
ngtcp2: initial h3 request work
Closes #4217
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http.h b/lib/http.h
index c27725d2a..945aceb56 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -174,14 +174,16 @@ struct HTTP {
size_t pauselen; /* the number of bytes left in data */
bool closed; /* TRUE on HTTP2 stream close */
bool close_handled; /* TRUE if stream closure is handled by libcurl */
- char *mem; /* points to a buffer in memory to store received data */
- size_t len; /* size of the buffer 'mem' points to */
- size_t memlen; /* size of data copied to mem */
char **push_headers; /* allocated array */
size_t push_headers_used; /* number of entries filled in */
size_t push_headers_alloc; /* number of entries allocated */
#endif
+#if defined(USE_NGHTTP2) || defined(USE_NGHTTP3)
+ char *mem; /* points to a buffer in memory to store received data */
+ size_t len; /* size of the buffer 'mem' points to */
+ size_t memlen; /* size of data copied to mem */
+#endif
#if defined(USE_NGHTTP2) || defined(ENABLE_QUIC)
/* fields used by both HTTP/2 and HTTP/3 */
const uint8_t *upload_mem; /* points to a buffer to read from */