class RouteEndpoint
cangjie
public class RouteEndpoint <: Endpoint功能:表示带有路由模式的端点。
父类型:
成员概览
| 成员 | 功能 |
|---|---|
| init(RoutePattern, RequestDelegate, EndpointMetadataCollection, ?String) | 创建一个路由端点。 |
| prop routePattern | 返回当前端点的路由模式。 |
| func toString() | - |
init(RoutePattern, RequestDelegate, EndpointMetadataCollection, ?String)
cangjie
public init(routePattern: RoutePattern, delegate: RequestDelegate, metadata: EndpointMetadataCollection,
displayName: ?String)功能:创建一个路由端点。
参数:
- routePattern: RoutePattern - 路由模式。
- delegate:
RequestDelegate- 请求处理委托。 - metadata: EndpointMetadataCollection - 端点元数据集合。
- displayName:
?String- 端点显示名称。
prop routePattern
cangjie
public prop routePattern: RoutePattern功能:返回当前端点的路由模式。
类型:RoutePattern
func toString()
cangjie
public override func toString(): String返回值:
String