WINHTTP_REQUEST_STAT_ENTRY enumeration (winhttp.h)

The WINHTTP_REQUEST_STAT_ENTRY enumeration lists the available types of request statistics.

Syntax

typedef enum _WINHTTP_REQUEST_STAT_ENTRY {
  WinHttpConnectFailureCount = 0,
  WinHttpProxyFailureCount,
  WinHttpTlsHandshakeClientLeg1Size,
  WinHttpTlsHandshakeServerLeg1Size,
  WinHttpTlsHandshakeClientLeg2Size,
  WinHttpTlsHandshakeServerLeg2Size,
  WinHttpRequestHeadersSize,
  WinHttpRequestHeadersCompressedSize,
  WinHttpResponseHeadersSize,
  WinHttpResponseHeadersCompressedSize,
  WinHttpResponseBodySize,
  WinHttpResponseBodyCompressedSize,
  WinHttpProxyTlsHandshakeClientLeg1Size,
  WinHttpProxyTlsHandshakeServerLeg1Size,
  WinHttpProxyTlsHandshakeClientLeg2Size,
  WinHttpProxyTlsHandshakeServerLeg2Size,
  WinHttpRequestStatLast,
  WinHttpRequestStatMax = 32
} WINHTTP_REQUEST_STAT_ENTRY;

Constants

 
WinHttpConnectFailureCount
Value: 0
The number of connection failures during connection establishment.
WinHttpProxyFailureCount
The number of proxy connection failures during connection establishment.
WinHttpTlsHandshakeClientLeg1Size
The size of the client data for the first leg of the TLS handshake.
WinHttpTlsHandshakeServerLeg1Size
The size of the server data for the first leg of the TLS handshake.
WinHttpTlsHandshakeClientLeg2Size
The size of the client data for the second leg of the TLS handshake.
WinHttpTlsHandshakeServerLeg2Size
The size of the server data for the second leg of the TLS handshake.
WinHttpRequestHeadersSize
The size of the request headers.
WinHttpRequestHeadersCompressedSize
The compressed size of the request headers.
WinHttpResponseHeadersSize
The size of the response headers.
WinHttpResponseHeadersCompressedSize
The compressed size of the response headers.
WinHttpResponseBodySize
The size of the response body.
WinHttpResponseBodyCompressedSize
The compressed size of the response body.
WinHttpProxyTlsHandshakeClientLeg1Size
The size of the client data for the first leg of the proxy TLS handshake.
WinHttpProxyTlsHandshakeServerLeg1Size
The size of the server data for the first leg of the proxy TLS handshake.
WinHttpProxyTlsHandshakeClientLeg2Size
The size of the client data for the second leg of the proxy TLS handshake.
WinHttpProxyTlsHandshakeServerLeg2Size
The size of the server data for the second leg of the proxy TLS handshake.
WinHttpRequestStatLast
Marker for the end of the list of available statistics.
WinHttpRequestStatMax
Value: 32
The maximum number of statistics available.

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

See also

WinHttpQueryOption

WINHTTP_REQUEST_STATS