18
我想知道如果我能回到響應頭HTTP協議是否支持響應頭中的多種內容類型?
Content-Type: application/json text/json
,或者不是此合法的嗎?
HTTP協議規定的內容類型應該是mediaType的中和mediaType的定義爲如下:
media-type = type "/" subtype *(";" parameter)
type = token
subtype = token
但我無法解釋這意味着什麼,任何人都可以告訴我嗎?
謝謝!
請注意,Content-Type與其他標題一樣,可能會出現兩次或多次。 – Stephan 2017-11-14 17:58:04