+htc add text/csv(UTF-8) ContentType

"CSV files considered the ultimate integration pattern" 😉

Adding the ContentType here is useful when someone wants to render a raw response which we know is a csv (i.e. fed from a file)
This commit is contained in:
Konrad Malawski 2015-12-06 02:24:08 +01:00
parent 0be7e5e786
commit aabb9ad237

View file

@ -105,6 +105,7 @@ object ContentTypes {
val `text/plain(UTF-8)` = MediaTypes.`text/plain` withCharset HttpCharsets.`UTF-8`
val `text/html(UTF-8)` = MediaTypes.`text/html` withCharset HttpCharsets.`UTF-8`
val `text/xml(UTF-8)` = MediaTypes.`text/xml` withCharset HttpCharsets.`UTF-8`
val `text/csv(UTF-8)` = MediaTypes.`text/csv` withCharset HttpCharsets.`UTF-8`
// used for explicitly suppressing the rendering of Content-Type headers on requests and responses
val NoContentType = ContentType(MediaTypes.NoMediaType)