根据请求的
Method
来匹配是否需要使用此路由
参数 | 类型 | 是否必须 | 默认值 | 描述 |
---|---|---|---|---|
methods | [str] |
Y |
方法名 |
-
router: routes: - id: method-shortcut matchers: - Method=GET,POST service: Static=examples/resources
-
router: routes: - id: method-complete matchers: - kind: Method args: methods: - GET - POST service: Static=examples/resources