Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Content-Type/MIME type is for the format.

There are dedicated headers for other properties, e.g. language.



Actually you're 100% correct.

Feels weird to me that encoding is part of MIME, but language isn't, although I understand why.


Yeah. The reason is that charset is a specific to text types. Language can apply to many media.

Though FWIW, I think the Content-Encoding header is basically a mistake, should should been Content-Transform.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: