sealed trait ContentType extends javadsl.model.ContentType with ValueRenderable

A ContentType represents a specific MediaType / HttpCharset combination.

If the MediaType is not flexible with regard to the charset used, e.g. because it's a binary MediaType or the charset is fixed, then the ContentType is a simple wrapper.

Source
ContentType.scala
Linear Supertypes
ValueRenderable, ToStringRenderable, Renderable, javadsl.model.ContentType, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContentType
  2. ValueRenderable
  3. ToStringRenderable
  4. Renderable
  5. ContentType
  6. AnyRef
  7. 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.

    True if this ContentType is non-textual.

    Definition Classes
    ContentType
  2. abstract def charsetOption: Option[HttpCharset]
  3. abstract def mediaType: MediaType

    The media-type of this content-type.

    The media-type of this content-type.

    Definition Classes
    ContentTypeContentType

Concrete Value Members

  1. def getCharsetOption: Optional[javadsl.model.HttpCharset]

    Java API

    Java API

    Definition Classes
    ContentTypeContentType
  2. def toString(): String
    Definition Classes
    ContentType → ToStringRenderable → AnyRef → Any
  3. def value: String
    Definition Classes
    ValueRenderable