trait ContentType extends AnyRef

Represents an Http content-type. A content-type consists of a media-type and an optional charset.

See ContentTypes for convenience access to often used values.

Source
ContentType.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContentType
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def binary: Boolean

    True if this ContentType is non-textual.

  2. abstract def getCharsetOption: Optional[HttpCharset]

    Returns the charset if this ContentType is non-binary.

  3. abstract def mediaType: MediaType

    The media-type of this content-type.