Share via


IConnectionInherentKeepAliveFeature 接口

定义

指示连接传输是否具有“固有的保持连接”,这意味着传输将自动通知客户端它仍然存在。

public interface class IConnectionInherentKeepAliveFeature
public interface IConnectionInherentKeepAliveFeature
type IConnectionInherentKeepAliveFeature = interface
Public Interface IConnectionInherentKeepAliveFeature
派生

注解

此功能的最常见示例是长轮询 HTTP 传输,由于 HTTP 限制,必须 (,) 在特定间隔内终止每个轮询,并返回指示“服务器仍在此处,但还没有数据”的信号。 此功能允许应用程序添加保持连接功能,但仅限于没有某种固有的保持连接功能的传输。

属性

HasInherentKeepAlive

获取连接是否具有固有的 keep-alive 概念。

适用于