class Matcher
cangjie
public abstract class Matcher功能:定义请求路径匹配器的抽象基类。
成员概览
| 成员 | 功能 |
|---|---|
| func invoke(HttpContext) | 对当前请求执行端点匹配。 |
| func debuggerToString() | 返回当前匹配器的调试字符串。 |
func invoke(HttpContext)
cangjie
public func invoke(context: HttpContext): Unit功能:对当前请求执行端点匹配。
参数:
- context: HttpContext - 当前 HTTP 上下文。
返回值:
Unit
func debuggerToString()
cangjie
public open func debuggerToString(): String功能:返回当前匹配器的调试字符串。
返回值:
String- 调试字符串表示。