非常教程

HTTP参考手册

标题 | Headers

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

HTTP

超文本传输协议( HTTP,HyperText Transfer Protocol ) 是互联网上应用最为广泛的一种网络协议。所有的 WWW 文件都必须遵守这个标准。