Allow
Allow 標頭列出了資源所支援的方法集。
如果伺服器回應 405 Method Not Allowed 狀態碼,則必須傳送此標頭以指示可以使用哪些請求方法。空的 Allow 標頭表示資源不允許任何請求方法,這可能暫時發生在某些特定的資源上。
語法
http
Allow: <http-methods>
指令
- <http-methods>
-
允許的 HTTP 請求方法的逗號分隔列表。
範例
http
Allow: GET, POST, HEAD
規範
| Specification |
|---|
| HTTP Semantics # field.allow |