object ContentTypes extends ContentTypes

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

Source
StandardValues.scala
Linear Supertypes
ContentTypes, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContentTypes
  2. ContentTypes
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val BINARY: String

    Content-Type of binary data.

    Content-Type of binary data.

    Definition Classes
    ContentTypes
  2. val CACHE_MANIFEST: String

    Content-Type of application cache.

    Content-Type of application cache.

    Definition Classes
    ContentTypes
  3. def CSS(implicit codec: Codec): String

    Content-Type of css.

    Content-Type of css.

    Definition Classes
    ContentTypes
  4. def EVENT_STREAM(implicit codec: Codec): String

    Content-Type of server sent events.

    Content-Type of server sent events.

    Definition Classes
    ContentTypes
  5. val FORM: String

    Content-Type of form-urlencoded.

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

    Definition Classes
    ContentTypes
  6. def HTML(implicit codec: Codec): String

    Content-Type of html.

    Content-Type of html.

    Definition Classes
    ContentTypes
  7. def JAVASCRIPT(implicit codec: Codec): String

    Content-Type of javascript.

    Content-Type of javascript.

    Definition Classes
    ContentTypes
  8. val JSON: String

    Content-Type of json.

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

    Definition Classes
    ContentTypes
  9. def TEXT(implicit codec: Codec): String

    Content-Type of text.

    Content-Type of text.

    Definition Classes
    ContentTypes
  10. def XHTML(implicit codec: Codec): String

    Content-Type of xhtml.

    Content-Type of xhtml.

    Definition Classes
    ContentTypes
  11. def XML(implicit codec: Codec): String

    Content-Type of xml.

    Content-Type of xml.

    Definition Classes
    ContentTypes
  12. def withCharset(mimeType: String)(implicit codec: Codec): String

    returns

    the codec charset appended to mimeType

    Definition Classes
    ContentTypes