diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-05 15:17:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-06 07:39:21 +0200 |
commit | dc35631ef7fe314c227ba0b8529a4e0f5f383f79 (patch) | |
tree | 828a024aba273587cbecad74ccfe0fbc6b39e8dc /lib/http.h | |
parent | a42b0957ab31c971a79bfe5542b3017fd834ac49 (diff) | |
download | curl-dc35631ef7fe314c227ba0b8529a4e0f5f383f79.tar.gz |
quiche: first working HTTP/3 request
- enable debug log
- fix use of quiche API
- use download buffer
- separate header/body
Closes #4193
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/http.h b/lib/http.h index ea1310c39..f6f5d4fd5 100644 --- a/lib/http.h +++ b/lib/http.h @@ -178,18 +178,21 @@ struct HTTP { size_t len; /* size of the buffer 'mem' points to */ size_t memlen; /* size of data copied to mem */ - 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 */ - char **push_headers; /* allocated array */ size_t push_headers_used; /* number of entries filled in */ size_t push_headers_alloc; /* number of entries allocated */ #endif +#if defined(USE_NGHTTP2) || defined(ENABLE_QUIC) + /* fields used by both HTTP/2 and HTTP/3 */ + 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 #ifdef ENABLE_QUIC /*********** for HTTP/3 we store stream-local data here *************/ int64_t stream3_id; /* stream we are interested in */ + bool firstbody; /* FALSE until body arrives */ #endif }; |