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

HttpResponseResult 结构

HTTP响应结果结构体,实现了IDisposable接口,用于在使用后释放相关资源。

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public readonly struct HttpResponseResult : IDisposable
Inheritance
Object    ValueType    HttpResponseResult
Implements
IDisposable

构造函数

HttpResponseResult 初始化HttpResponseResult结构体。

属性

Response 获取HTTP响应对象。

方法

Dispose 执行资源释放操作。调用构造函数中传入的Action委托以执行具体释放逻辑。
EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
SafeDispose 安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见