ktor
ktor copied to clipboard
ContentType should be MimeType
Is your feature request related to a problem? Please describe.
HTTP does not know about a content type, it's all about MIME types. Others than the "Content-Type:" HTTP header, the "Accept:" header takes a MIME type as well. It's a little confusing when using ContentType.Application.Json instead of MimeType.Application.Json
Describe the solution you'd like
Rename ContentType to MimeType
Hi @saschpe, thanks for the report. We could introduce type alias at least.
That would make sense to avoid an API break. One way would be to rename, add a compat typealias with maybe a deprecation warning..
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.