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

RouteMatchResult 结构

路由匹配结果

Definition

命名空间: TouchSocket.WebApi
程序集: TouchSocket.WebApi (在 TouchSocket.WebApi.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public readonly struct RouteMatchResult
Inheritance
Object    ValueType    RouteMatchResult

属性

AllowedMethods 允许的HTTP方法列表
RpcMethod 匹配的RPC方法
Status 匹配状态

方法

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。)
MethodNotAllowed 创建方法不允许的结果
NotFound 创建路由未找到的结果
Options 创建OPTIONS请求的结果
Success 创建成功的匹配结果
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

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

参见