aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-27 13:54:47 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:54:54 +0200
commitd6440d73667e11fec607d7560fca2cdde0b171a8 (patch)
tree547367b3668a6144012303e5ae26ec5d19438309 /lib/http.h
parentf8586240522fe2405759ad6cb57eb2d4b142907c (diff)
http2: move stream_id to the HTTP struct (per-stream)
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index f7d64e8c4..fb924c609 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -152,6 +152,9 @@ struct HTTP {
void *send_buffer; /* used if the request couldn't be sent in one chunk,
points to an allocated send_buffer struct */
+
+ /* for HTTP/2 we store stream-local data here */
+ int32_t stream_id; /* stream we are interested in */
};
typedef int (*sending)(void); /* Curl_send */
@@ -175,7 +178,6 @@ struct http_conn {
response headers into it. */
size_t nread_header_recvbuf; /* number of bytes in header_recvbuf
fed into upper layer */
- int32_t stream_id; /* stream we are interested in */
const uint8_t *data; /* pointer to data chunk, received in
on_data_chunk */
size_t datalen; /* the number of bytes left in data */