一款简单易用的基础网络通讯组件库。

HttpBaseKeepAlive 属性

保持连接。

一般的,当是http1.1时,如果没有显式的Connection: close,即返回true。当是http1.0时,如果没有显式的Connection: Keep-Alive,即返回false。

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public bool KeepAlive { get; set; }

属性值

Boolean

参见