[net] add HHTP2, gzip, deflate support

* Closes #1550
This commit is contained in:
dmex 2020-05-30 19:35:49 +01:00 committed by Pete Batard
parent ee34bf495a
commit 63bb308ad6
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 26 additions and 12 deletions

View file

@ -104,10 +104,19 @@ static __inline void *_reallocf(void *ptr, size_t size) {
/* MinGW doesn't know these */
#ifndef WM_CLIENTSHUTDOWN
#define WM_CLIENTSHUTDOWN 0x3B
#define WM_CLIENTSHUTDOWN 0x3B
#endif
#ifndef WM_COPYGLOBALDATA
#define WM_COPYGLOBALDATA 0x49
#define WM_COPYGLOBALDATA 0x49
#endif
#ifndef INTERNET_OPTION_ENABLE_HTTP_PROTOCOL
#define INTERNET_OPTION_ENABLE_HTTP_PROTOCOL 148
#endif
#ifndef INTERNET_OPTION_HTTP_DECODING
#define INTERNET_OPTION_HTTP_DECODING 65
#endif
#ifndef HTTP_PROTOCOL_FLAG_HTTP2
#define HTTP_PROTOCOL_FLAG_HTTP2 2
#endif
/* The following is used for native ISO mounting in Windows 8 or later */