HttpKeepAlivePingPolicy 枚举

定义

指定在空闲连接上发送 HTTP/2 ping 帧的时间。

public enum class HttpKeepAlivePingPolicy
public enum HttpKeepAlivePingPolicy
type HttpKeepAlivePingPolicy = 
Public Enum HttpKeepAlivePingPolicy
继承
HttpKeepAlivePingPolicy

字段

Always 1

为连接的整个生存期发送“保持活动状态”ping。

WithActiveRequests 0

仅当连接上存在活动流时才发送“保持活动状态”ping。

适用于