文件
a 專案

method

變更請求的 HTTP 方法。

語法

method [<matcher>] <method>
  • <method> 是要將請求變更為的 HTTP 方法。

範例

/api 下所有請求的方法變更為 POST

method /api* POST