quiche: first working HTTP/3 request

- enable debug log
 - fix use of quiche API
 - use download buffer
 - separate header/body

Closes #4193
This commit is contained in:
Daniel Stenberg 2019-08-05 15:17:31 +02:00
parent a42b0957ab
commit dc35631ef7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 89 additions and 31 deletions

View file

@ -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
};