Packages

trait WithOpenCharset extends NonBinary

Source
MediaType.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithOpenCharset
  2. NonBinary
  3. MediaType
  4. AnyRef
  5. 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 when this media-type is not character-based.

    True when this media-type is not character-based.

    Definition Classes
    MediaType
  2. abstract def isApplication: Boolean
    Definition Classes
    MediaType
  3. abstract def isAudio: Boolean
    Definition Classes
    MediaType
  4. abstract def isCompressible: Boolean

    True when this media-type is generally compressible.

    True when this media-type is generally compressible.

    Definition Classes
    MediaType
  5. abstract def isImage: Boolean
    Definition Classes
    MediaType
  6. abstract def isMessage: Boolean
    Definition Classes
    MediaType
  7. abstract def isMultipart: Boolean
    Definition Classes
    MediaType
  8. abstract def isText: Boolean
    Definition Classes
    MediaType
  9. abstract def isVideo: Boolean
    Definition Classes
    MediaType
  10. abstract def mainType: String

    The main-type of this media-type.

    The main-type of this media-type.

    Definition Classes
    MediaType
  11. abstract def subType: String

    The sub-type of this media-type.

    The sub-type of this media-type.

    Definition Classes
    MediaType
  12. abstract def toContentType(charset: HttpCharset): WithCharset

    Turns the media type into a content type with the given charset.

  13. abstract def toContentTypeWithMissingCharset: WithMissingCharset

    Turns the media type into a content type without specifying a charset.

    Turns the media type into a content type without specifying a charset.

    This is generally NOT what you want, since you're hiding the actual character encoding of your content, making decoding it possibly ambiguous.

    Consider using toContentType(charset: HttpCharset) instead.

  14. abstract def toRange(qValue: Float): MediaRange

    Creates a media-range from this media-type with a given qValue.

    Creates a media-range from this media-type with a given qValue.

    Definition Classes
    MediaType
  15. abstract def toRange: MediaRange

    Creates a media-range from this media-type.

    Creates a media-range from this media-type.

    Definition Classes
    MediaType