Skip to content

interface IEndpointRouter

cangjie
public interface IEndpointRouter

功能:定义端点路由器接口。

成员概览

成员功能
func routing(HttpContext)根据当前请求匹配端点处理器。

func routing(HttpContext)

cangjie
func routing(context: HttpContext): ?IEndpointHandler

功能:根据当前请求匹配端点处理器。

参数:

返回值:

  • ?IEndpointHandler - 返回匹配到的端点处理器;未匹配时返回空。