WINHTTP_REQUEST_STATS structure (winhttp.h)
The WINHTTP_REQUEST_STATS structure contains a variety of statistics for a request.
Syntax
typedef struct _WINHTTP_REQUEST_STATS {
ULONGLONG ullFlags;
ULONG ulIndex;
ULONG cStats;
ULONGLONG rgullStats[WinHttpRequestStatMax];
} WINHTTP_REQUEST_STATS, *PWINHTTP_REQUEST_STATS;
Members
ullFlags
Flags containing details on how the request was made. The following flags are available.
Value | Meaning |
---|---|
WINHTTP_REQUEST_STAT_FLAG_TCP_FAST_OPEN | TCP Fast Open occurred. |
WINHTTP_REQUEST_STAT_FLAG_TLS_SESSION_RESUMPTION | TLS Session Resumption occurred. |
WINHTTP_REQUEST_STAT_FLAG_TLS_FALSE_START | TLS False Start occurred. |
WINHTTP_REQUEST_STAT_FLAG_PROXY_TLS_SESSION_RESUMPTION | TLS Session Resumption occurred for the proxy connection. |
WINHTTP_REQUEST_STAT_FLAG_PROXY_TLS_FALSE_START | TLS False Start occurred for the proxy connection. |
WINHTTP_REQUEST_STAT_FLAG_FIRST_REQUEST | This is the first request on the connection. |
ulIndex
The index of the request on the connection. This indicates how many prior requests were sent over the shared connection.
cStats
Unsigned long integer value that contains the number of statistics to retrieve. This should generally be set to WinHttpRequestStatLast.
rgullStats[WinHttpRequestStatMax]
Array of unsigned long long integer values that will contain the returned statistics, indexed by WINHTTP_REQUEST_STAT_ENTRY.
Remarks
This structure is used with WinHttpQueryOption to retrieve statistics for a request by specifying the WINHTTP_OPTION_REQUEST_STATS flag.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1903 [desktop apps only] |
Minimum supported server | Windows Server 2019 [desktop apps only] |
Header | winhttp.h |