interface IEndpointRouter
cangjie
public interface IEndpointRouter功能:定义端点路由器接口。
成员概览
| 成员 | 功能 |
|---|---|
| func routing(HttpContext) | 根据当前请求匹配端点处理器。 |
func routing(HttpContext)
cangjie
func routing(context: HttpContext): ?IEndpointHandler功能:根据当前请求匹配端点处理器。
参数:
- context: HttpContext - 当前 HTTP 上下文。
返回值:
- ?IEndpointHandler - 返回匹配到的端点处理器;未匹配时返回空。