Allow
Allow支持标题列出资源集合的方法。
如果服务器响应405 Method Not Allowed状态码来指示可以使用哪种请求方法,则必须发送此标头。例如,空白Allow标题表示该资源不允许任何请求方法,例如可能暂时针对给定资源发生。
Header type | Entity header |
|---|---|
Forbidden header name | no |
语法
Allow: <http-methods>指令
<http-methods> 允许的 HTTP 请求方法的列表。
例子
Allow: GET, POST, HEAD规范
Specification | Title |
|---|---|
RFC 7231, section 7.4.1: Allow | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

