summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-28 20:39:47 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:17 +0200
commit5fe71975e428f41f10bc367b1753ed7ebc4e5205 (patch)
tree19ae878da6c918e1afecafecc5b9e5c564cb4df9 /lib/http.h
parent77f1029ecda8ff03c3a022e67098b39408b1ac66 (diff)
downloadcurl-5fe71975e428f41f10bc367b1753ed7ebc4e5205.tar.gz
HTTP: partial start at fixing up hash-lookups on http2 frame receival
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/http.h b/lib/http.h
index 1fa85f76b..b53b963fa 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -155,6 +155,11 @@ struct HTTP {
/* for HTTP/2 we store stream-local data here */
int32_t stream_id; /* stream we are interested in */
+
+ /* We store non-final and final response headers here, per-stream */
+ Curl_send_buffer *header_recvbuf;
+ size_t nread_header_recvbuf; /* number of bytes in header_recvbuf fed into
+ upper layer */
};
typedef int (*sending)(void); /* Curl_send */
@@ -173,11 +178,6 @@ struct http_conn {
recving recv_underlying; /* underlying recv Curl_recv callback */
bool closed; /* TRUE on HTTP2 stream close */
uint32_t error_code; /* HTTP/2 error code */
- Curl_send_buffer *header_recvbuf; /* store response headers. We
- store non-final and final
- response headers into it. */
- size_t nread_header_recvbuf; /* number of bytes in header_recvbuf
- fed into upper layer */
const uint8_t *data; /* pointer to data chunk, received in
on_data_chunk */
size_t datalen; /* the number of bytes left in data */