MIME type for msgpack?

13.3k Views Asked by At

msgpack seems to be an extremely fast, if extremely new format for data serialisation. Does it have a recognised MIME type yet? If not, what should be used in the interim?

4

There are 4 best solutions below

3
On BEST ANSWER

According to a quick Google the overwhelming answer is application/x-msgpack. However, I can't find an authorative source.

0
On

Application types:

  • application/msgpack
  • application/x-msgpack
  • application/*+msgpack
0
On

From the Wikipedia page on Media type:

According to RFC 6838 (published in January 2013 : https://www.rfc-editor.org/rfc/rfc6838), any use of types in the "x." tree is strongly discouraged. Media types with names beginning with "x-" are no longer considered to be members of this tree since January 2013.

So you can use application/msgpack.

0
On

application/x-msgpack is probably the correct MIME header, however a small caution to future readers: relying on a MIME type for anything beyond high-level information is dangerous (at best) because the structure and meaning of the message is dynamic in nature.