Allow - HTTP 编辑
The Allow
header lists the set of methods supported by a resource.
This header must be sent if the server responds with a 405
Method Not Allowed
status code to indicate which request methods can be used. An empty Allow
header indicates that the resource allows no request methods, which might occur temporarily for a given resource, for example.
Header type | Entity header |
---|---|
Forbidden header name | no |
Syntax
Allow: <http-methods>
Directives
- <http-methods>
- The comma-separated list of allowed HTTP request methods.
Examples
Allow: GET, POST, HEAD
Specifications
Specification | Title |
---|---|
RFC 7231, section 7.4.1: Allow | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论