ngtcp2: accept upload via callback

Closes #4256
This commit is contained in:
Daniel Stenberg 2019-08-22 14:08:18 +02:00
parent 32d64b2e87
commit 0a5d28fa2e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 153 additions and 19 deletions

View file

@ -126,6 +126,10 @@ CURLcode Curl_http_auth_act(struct connectdata *conn);
#endif /* CURL_DISABLE_HTTP */
#ifdef USE_NGHTTP3
struct h3out; /* see ngtcp2 */
#endif
/****************************************************************************
* HTTP unique setup
***************************************************************************/
@ -196,6 +200,10 @@ struct HTTP {
int64_t stream3_id; /* stream we are interested in */
bool firstbody; /* FALSE until body arrives */
bool h3req; /* FALSE until request is issued */
bool upload_done;
#endif
#ifdef USE_NGHTTP3
struct h3out *h3out; /* per-stream buffers for upload */
#endif
};