YAML media type?

前端 未结 6 1942
旧巷少年郎
旧巷少年郎 2020-12-04 11:10

What is the most appropriate media type (formally MIME type) to use when sending data structured with YAML over HTTP and why?

There is no registered application type

6条回答
  •  醉梦人生
    2020-12-04 11:48

    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.

提交回复
热议问题