Skip to content

class Matcher

cangjie
public abstract class Matcher

功能:定义请求路径匹配器的抽象基类。

成员概览

成员功能
func invoke(HttpContext)对当前请求执行端点匹配。
func debuggerToString()返回当前匹配器的调试字符串。

func invoke(HttpContext)

cangjie
public func invoke(context: HttpContext): Unit

功能:对当前请求执行端点匹配。

参数:

返回值:

  • Unit

func debuggerToString()

cangjie
public open func debuggerToString(): String

功能:返回当前匹配器的调试字符串。

返回值:

  • String - 调试字符串表示。