![JAR search and dependency download from the Maven repository](/logo.png)
skinny.Format.scala Maven / Gradle / Ivy
The newest version!
package skinny
/**
* Response body format.
*/
trait Format {
val name: String
val contentType: String
}
/**
* Response body formats.
*/
object Format {
case object HTML extends Format {
override val name = "html"
override val contentType = "text/html"
}
case object XML extends Format {
override val name = "xml"
override val contentType = "application/xml"
}
case object JSON extends Format {
override val name = "json"
override val contentType = "application/json"
}
case object JavaScript extends Format {
override val name = "js"
override val contentType = "application/javascript"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy