class EndpointDescriptor
cangjie
public class EndpointDescriptor功能:表示端点路由描述信息。
成员概览
| 成员 | 功能 |
|---|---|
| init(String, String, TypeInfo) | 创建端点描述信息。 |
init(String, String, TypeInfo)
cangjie
public EndpointDescriptor(public let name: String, public let path: String, public let typeInfo: TypeInfo)功能:创建端点描述信息。
参数:
- name:
String- 端点名称。 - path:
String- 端点路径。 - typeInfo:
TypeInfo- 端点处理器类型信息。