csv

inline fun <T : Any, R : HttpMessage> R.csv(t: List<T>): R

Convenience function to write the object as CSV to the message body and set the content type.


inline fun <T : Any> HttpMessage.csv(): List<T>

Convenience function to read an object as CSV from the message body.