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

ResponsedData 结构

表示响应数据的结构体,包含响应的字节数据和请求信息。

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public readonly struct ResponsedData : IDisposable
Inheritance
Object    ValueType    ResponsedData
Implements
IDisposable

构造函数

ResponsedData 初始化 ResponsedData 结构体的新实例。

属性

Memory 获取响应的字节数据。
RequestInfo 获取请求信息。

方法

Dispose 释放资源。
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 定义。)

参见