Accept-Post - HTTP 编辑
The Accept-Post
response HTTP header advertises which media types are accepted by the server for HTTP post requests.
Accept-Post
in response to any method means that POST
is allowed on the requested resource (any document/media format in the header further indicates that the document format is allowed).
For example, a server receiving a POST
request with an unsupported media type could reply with 415
Unsupported Media Type
and an Accept-Post
header referencing one or more supported media types.
An IANA registry maintains a complete list of official content encodings.
Header type | Response header |
---|---|
Forbidden header name | yes |
Syntax
Accept: <MIME_type>/<MIME_subtype> Accept: <MIME_type>/* Accept: */*Notes: The
Accept-Post
header specifies a media range in the same way as Accept-Language
, except that it has no notion of preference (i.e. "accept-params" or "q" arguments are not significant).Directives
None.
Examples
Accept-Post: application/example, text/example Accept-Post: image/webp Accept-Post: */*
Specifications
Specification | Title |
---|---|
Linked Data Platform 1.0, Section 7.1: The Accept-Post Response Header | ACCEPT POST |
Browser compatibility
Browser compatibility is not relevant for this header (header is sent by server, and the specification does not define client behaviour).
See also
- Http method
POST
- HTTP Semantic and context RFC 7231, section 4.3.3: POST
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论