是否可以指定HTTP标头类别以通过Rails响应对象API向其添加标头字段?

时间:2020-01-07 22:39:26

标签: ruby-on-rails http-headers

我想使用HTTP标头发送有关响应内容的元数据。

MDN指出A response header is an HTTP header that can be used in an HTTP response and that doesn't relate to the content of the message,An entity header is an HTTP header describing the content of the body of the message.

对我来说,这清楚地表明,通过实体头发送内容元数据的正确头是

我发现Rails docs没有提供一种方法指定HTTP标头使用的类别,当我添加它们时,当我收到来自我的响应时,它们会显示在响应标头中Rails应用,这不是我想要的。

是否可以指定HTTP标头类别以通过Rails响应对象API向其添加标头字段?

0 个答案:

没有答案