aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-29 17:00:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:17 +0200
commit7bbac214f5be8ab87114a0e00db2ebd390e1c64b (patch)
tree171eba44aa9fd3d3ca5e09057c60392890fa927c /lib/http.h
parent84c6b6561f8a537f43b0647e4dbd7f2b258e2174 (diff)
http2: move the mem+len pair to the stream struct
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/http.h b/lib/http.h
index 48f5c7350..50db486d2 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -166,6 +166,9 @@ struct HTTP {
size_t datalen; /* the number of bytes left in data */
bool closed; /* TRUE on HTTP2 stream close */
uint32_t error_code; /* HTTP/2 error code */
+
+ char *mem; /* points to a buffer in memory to store received data */
+ size_t len; /* size of the buffer 'mem' points to */
};
typedef int (*sending)(void); /* Curl_send */
@@ -177,8 +180,6 @@ struct http_conn {
nghttp2_session *h2;
uint8_t binsettings[H2_BINSETTINGS_LEN];
size_t binlen; /* length of the binsettings data */
- char *mem; /* points to a buffer in memory to store */
- size_t len; /* size of the buffer 'mem' points to */
sending send_underlying; /* underlying send Curl_send callback */
recving recv_underlying; /* underlying recv Curl_recv callback */
char *inbuf; /* buffer to receive data from underlying socket */