[英]MIME type for Flatbuffers?
I've searched to find the proper MIME type for flatbuffers but I can't seem to find any. 我已经搜索过为flatbuffers找到合适的MIME类型,但我似乎无法找到任何。 No mention of it on their documentation either.
也没有在他们的文档中提到它。
The project page: https://github.com/google/flatbuffers 项目页面: https : //github.com/google/flatbuffers
There is a similar question for protocol buffers, with a useful answer here: https://stackoverflow.com/a/48051331/761177 协议缓冲区有一个类似的问题,这里有一个有用的答案: https : //stackoverflow.com/a/48051331/761177
For flatbuffers something like application/x-flatbuffers;schema=xyz might be appropriate, where xyz is the namespace declared in your schema. 对于flatbuffers,比如application / x-flatbuffers; schema = xyz可能是合适的,其中xyz是在模式中声明的命名空间。
There is none. 空无一人。 The correct mime type to use is
application/octet-stream
. 要使用的正确mime类型是
application/octet-stream
。
I don't think creating one would make sense either, since a naked FlatBuffer (without knowledge of its schema) cannot be parsed (unlike JSON), it is an opaque binary file. 我不认为创建一个也有意义,因为无法解析裸体FlatBuffer(不知道其模式)(与JSON不同),它是一个不透明的二进制文件。
application/flatbuffer
(if it existed) is barely more useful than application/octet-stream
. application/flatbuffer
(如果存在的话)几乎比application/octet-stream
更有用。
You need the schema before the file becomes readable, and I don't think mime types have a way to specify the schema name.. though I suppose flatbuffers/schema-name
would be cool, if whatever standards body governs mime types would allow it :) 在文件变得可读之前你需要模式,我认为mime类型没有办法指定模式名称..虽然我认为
flatbuffers/schema-name
会很酷,如果任何标准体管理mime类型都允许它:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.