ContentTypes

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

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def CSS(implicit codec: Codec): String

Content-Type of css.

Content-Type of css.

Attributes

def EVENT_STREAM(implicit codec: Codec): String

Content-Type of server sent events.

Content-Type of server sent events.

Attributes

def HTML(implicit codec: Codec): String

Content-Type of html.

Content-Type of html.

Attributes

def JAVASCRIPT(implicit codec: Codec): String

Content-Type of javascript.

Content-Type of javascript.

Attributes

def TEXT(implicit codec: Codec): String

Content-Type of text.

Content-Type of text.

Attributes

def XHTML(implicit codec: Codec): String

Content-Type of xhtml.

Content-Type of xhtml.

Attributes

def XML(implicit codec: Codec): String

Content-Type of xml.

Content-Type of xml.

Attributes

def withCharset(mimeType: String)(implicit codec: Codec): String

Attributes

Returns

the codec charset appended to mimeType

Concrete fields

val BINARY: String

Content-Type of binary data.

Content-Type of binary data.

Attributes

Content-Type of application cache.

Content-Type of application cache.

Attributes

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

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