36

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?

Tim McNamara
  • 18,019
  • 4
  • 52
  • 83

4 Answers4

50

From Wikipedia : 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.

Then use directly application/msgpack

Community
  • 1
  • 1
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
19

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

Stu Mackellar
  • 11,510
  • 1
  • 38
  • 59
1

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.

Sean
  • 9,888
  • 4
  • 40
  • 43
0

Application types:

  • application/msgpack
  • application/x-msgpack
  • application/*+msgpack
аlex
  • 5,426
  • 1
  • 29
  • 38