gsoapWinInet: Add HTTP2 support
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
This code snippet adds HTTP2 support to the WinInet plugin:
In wininet_init, after InternetOpenA add:
#ifdef INTERNET_OPTION_ENABLE_HTTP_PROTOCOL
DWORD httpProtocol = HTTP_PROTOCOL_FLAG_HTTP2;
VERIFY(InternetSetOption(a_pData->hInternet, INTERNET_OPTION_ENABLE_HTTP_PROTOCOL, &httpProtocol, sizeof(httpProtocol)));
#endif
Correction: VERIFY should be removed as the feature is only available on Windows 10 and higher:
Feature included with 2.8.26.