interface IEndpointHandler
cangjie
public interface IEndpointHandler功能:定义端点处理器接口。
成员概览
| 成员 | 功能 |
|---|---|
| func handle(HttpContext) | 处理当前请求并返回端点结果。 |
func handle(HttpContext)
cangjie
func handle(context: HttpContext): IEndpointResult功能:处理当前请求并返回端点结果。
参数:
- context: HttpContext - 当前 HTTP 上下文。
返回值:
- IEndpointResult - 返回端点处理结果。