summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-05-18 20:53:58 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-05-18 20:53:58 -0400
commit7da064fdd233a801de433a42dd80c6125fa5d6f5 (patch)
treee7a98144707f1c98cb26378d5f5d0884023427f2 /lib/http.h
parent897a7b3a13138468fb8bb98b8d54cdd5eef7ae9d (diff)
downloadcurl-7da064fdd233a801de433a42dd80c6125fa5d6f5.tar.gz
http: Add some include guards for the new HTTP/2 stuff
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index cb861e2e5..415be39e1 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -154,6 +154,7 @@ struct HTTP {
void *send_buffer; /* used if the request couldn't be sent in one chunk,
points to an allocated send_buffer struct */
+#ifdef USE_NGHTTP2
/*********** for HTTP/2 we store stream-local data here *************/
int32_t stream_id; /* stream we are interested in */
@@ -175,16 +176,19 @@ struct HTTP {
const uint8_t *upload_mem; /* points to a buffer to read from */
size_t upload_len; /* size of the buffer 'upload_mem' points to */
curl_off_t upload_left; /* number of bytes left to upload */
+#endif
};
typedef int (*sending)(void); /* Curl_send */
typedef int (*recving)(void); /* Curl_recv */
+#ifdef USE_NGHTTP2
/* h2 settings for this connection */
struct h2settings {
uint32_t max_concurrent_streams;
bool enable_push;
};
+#endif
struct http_conn {