ContentTypes

play.api.http.ContentTypes
See theContentTypes companion trait
object ContentTypes extends ContentTypes

Defines common HTTP Content-Type header values, according to the current available Codec.

Attributes

Companion
trait
Graph
Supertypes
trait ContentTypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def CSS(implicit codec: Codec): String

Content-Type of css.

Content-Type of css.

Attributes

Inherited from:
ContentTypes
def EVENT_STREAM(implicit codec: Codec): String

Content-Type of server sent events.

Content-Type of server sent events.

Attributes

Inherited from:
ContentTypes
def HTML(implicit codec: Codec): String

Content-Type of html.

Content-Type of html.

Attributes

Inherited from:
ContentTypes
def JAVASCRIPT(implicit codec: Codec): String

Content-Type of javascript.

Content-Type of javascript.

Attributes

Inherited from:
ContentTypes
def TEXT(implicit codec: Codec): String

Content-Type of text.

Content-Type of text.

Attributes

Inherited from:
ContentTypes
def XHTML(implicit codec: Codec): String

Content-Type of xhtml.

Content-Type of xhtml.

Attributes

Inherited from:
ContentTypes
def XML(implicit codec: Codec): String

Content-Type of xml.

Content-Type of xml.

Attributes

Inherited from:
ContentTypes
def withCharset(mimeType: String)(implicit codec: Codec): String

Attributes

Returns

the codec charset appended to mimeType

Inherited from:
ContentTypes

Inherited fields

val BINARY: String

Content-Type of binary data.

Content-Type of binary data.

Attributes

Inherited from:
ContentTypes

Content-Type of application cache.

Content-Type of application cache.

Attributes

Inherited from:
ContentTypes
val FORM: String

Content-Type of form-urlencoded. This content type does not define a charset parameter.

Content-Type of form-urlencoded. This content type does not define a charset parameter.

Attributes

Inherited from:
ContentTypes
val JSON: String

Content-Type of json. This content type does not define a charset parameter.

Content-Type of json. This content type does not define a charset parameter.

Attributes

Inherited from:
ContentTypes