mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:13:37 +03:00
http2: add http2.[ch] and add nghttp2 version output
This commit is contained in:
parent
06b6e1d0d2
commit
ac487842a1
4 changed files with 84 additions and 3 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <curl/curl.h>
|
||||
#include "urldata.h"
|
||||
#include "sslgen.h"
|
||||
#include "http2.h"
|
||||
|
||||
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
|
||||
#include <curl/mprintf.h>
|
||||
|
|
@ -122,6 +123,11 @@ char *curl_version(void)
|
|||
left -= len;
|
||||
ptr += len;
|
||||
#endif
|
||||
#ifdef USE_NGHTTP2
|
||||
len = Curl_http2_ver(ptr, left);
|
||||
left -= len;
|
||||
ptr += len;
|
||||
#endif
|
||||
#ifdef USE_LIBRTMP
|
||||
{
|
||||
char suff[2];
|
||||
|
|
@ -274,6 +280,9 @@ static curl_version_info_data version_info = {
|
|||
#endif
|
||||
#if defined(USE_TLS_SRP)
|
||||
| CURL_VERSION_TLSAUTH_SRP
|
||||
#endif
|
||||
#if defined(USE_NGHTTP2)
|
||||
| CURL_VERSION_HTTP2
|
||||
#endif
|
||||
,
|
||||
NULL, /* ssl_version */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue