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

HttpMethod 结构

表示HTTP方法的结构体。

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public readonly struct HttpMethod : IEquatable<HttpMethod>
Inheritance
Object    ValueType    HttpMethod
Implements
IEquatableHttpMethod

构造函数

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

方法

GetTypeGets the Type of the current instance.
(继承自 Object。)
ToString 返回HTTP方法的字符串表示。
(重写 ValueTypeToString)

运算符

(String to HttpMethod) 将字符串隐式转换为HttpMethod

字段

Connect 表示HTTP CONNECT方法。
Delete 表示HTTP DELETE方法。
Get 表示HTTP GET方法。
Options 表示HTTP OPTIONS方法。
Post 表示HTTP POST方法。
Put 表示HTTP PUT方法。

扩展方法

ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见