summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-29 15:21:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:17 +0200
commit84c6b6561f8a537f43b0647e4dbd7f2b258e2174 (patch)
tree688c13f3a36cc9f4992853b4e67a02520609820b /lib/http.h
parent2c238ea1fc3b0979ebe6a6088591198df5ea5415 (diff)
downloadcurl-84c6b6561f8a537f43b0647e4dbd7f2b258e2174.tar.gz
http2: more stream-oriented data, stream ID 0 is for connections
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.h b/lib/http.h
index a64d83f18..48f5c7350 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -164,6 +164,8 @@ struct HTTP {
int status_code; /* HTTP status code */
const uint8_t *data; /* pointer to data chunk, received in on_data_chunk */
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 */
};
typedef int (*sending)(void); /* Curl_send */
@@ -179,8 +181,6 @@ struct http_conn {
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 */
- bool closed; /* TRUE on HTTP2 stream close */
- uint32_t error_code; /* HTTP/2 error code */
char *inbuf; /* buffer to receive data from underlying socket */
/* We need separate buffer for transmission and reception because we
may call nghttp2_session_send() after the