mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
HTTP3: initial (experimental) support
USe configure --with-ngtcp2 or --with-quiche Using either option will enable a HTTP3 build. Co-authored-by: Alessandro Ghedini <alessandro@ghedini.me> Closes #3500
This commit is contained in:
parent
7644abf8e8
commit
3af0e76d1e
33 changed files with 2520 additions and 23 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "vtls/vtls.h"
|
||||
#include "http2.h"
|
||||
#include "ssh.h"
|
||||
#include "quic.h"
|
||||
#include "curl_printf.h"
|
||||
|
||||
#ifdef USE_ARES
|
||||
|
|
@ -187,6 +188,11 @@ char *curl_version(void)
|
|||
left -= len;
|
||||
ptr += len;
|
||||
#endif
|
||||
#ifdef ENABLE_QUIC
|
||||
len = Curl_quic_ver(ptr, left);
|
||||
left -= len;
|
||||
ptr += len;
|
||||
#endif
|
||||
#ifdef USE_LIBRTMP
|
||||
{
|
||||
char suff[2];
|
||||
|
|
@ -358,6 +364,9 @@ static curl_version_info_data version_info = {
|
|||
#if defined(USE_NGHTTP2)
|
||||
| CURL_VERSION_HTTP2
|
||||
#endif
|
||||
#if defined(ENABLE_QUIC)
|
||||
| CURL_VERSION_HTTP3
|
||||
#endif
|
||||
#if defined(USE_UNIX_SOCKETS)
|
||||
| CURL_VERSION_UNIX_SOCKETS
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue