+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:
parent
0be7e5e786
commit
aabb9ad237
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue