[英]Correct way to set the content language of a POST request
What is the proper way to indicate the language of the content of a POST request made by the client? 指示客户端发出的POST请求内容的语言的正确方法是什么? I looked into Accept-Language
and Content-Language
. 我研究了Accept-Language
和Content-Language
。 The first seems to be hinting the server that I want a document in a certain language. 第一个似乎是在暗示服务器我想要某种语言的文档。 The second one is a header set by the server. 第二个是服务器设置的标头。
I would like to indicate the language of the POST payload as a header. 我想指出POST负载的语言作为标题。 Is Content-Language
acceptable or is there a better way? Content-Language
可以接受还是有更好的方法?
The spec for Content-Language
does not restrict it to being a response header. Content-Language
的规范并不将其限制为响应标头。
It applies equally to requests and responses. 它同样适用于请求和响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.