Proper syntax for optional header parameter for text/csv mimetype?

偶尔善良 提交于 2019-12-06 19:37:35

问题


According to RFC 4180:

...the presence or absence of the header line should be indicated via the optional "header" parameter of this MIME type...

So, does that mean the correct string is:

text/csv; header

Or perhaps:

text/csv; header=true

Or something else?


回答1:


The "header" parameter indicates the presence or absence of the header line. Valid values are "present" or "absent".

So if you use that parameter, the full MIME type would be text/csv; header=present or text/csv; header=absent.



来源:https://stackoverflow.com/questions/15457752/proper-syntax-for-optional-header-parameter-for-text-csv-mimetype

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!