YAML哑剧型? [英] YAML mime type?
本文介绍了YAML哑剧型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在通过HTTP发送使用YAML构建的数据时,最合适的MIME类型是什么?
为什么解释 最合适的选择将非常受欢迎。
An explanation of why a given choice is most appropriate would be much appreciated.
没有注册应用程序类型或我可以看到的文字类型。
示例:
> GET /example.yaml
< Content-Type: ????
<
< --- # Favorite movies
< - Casablanca
< - North by Northwest
< - Notorious
可能的选择:
text/yaml
text/x-yaml
application/yaml
application/x-yaml
推荐答案
Ruby on Rails使用 application / x-yaml
替代方案 text / yaml
(来源)。
Ruby on Rails uses application/x-yaml
with an alternative of text/yaml
(source).
我认为这只是一个惯例,没有技术为什么,据我所知。
I think it's just a matter of convention, there is no technical why, as far as I can tell.
这篇关于YAML哑剧型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文