Packages

object MediaType extends MimeDB

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

Type Members

  1. class Macros extends AnyRef
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.16) This location of the implementation complicates Dotty support

Value Members

  1. val Binary: Boolean
    Definition Classes
    MimeDB
  2. val Compressible: Boolean
    Definition Classes
    MimeDB
  3. val NotBinary: Boolean
    Definition Classes
    MimeDB
  4. val Uncompressible: Boolean
    Definition Classes
    MimeDB
  5. lazy val all: Map[(String, String), MediaType]
  6. lazy val allMediaTypes: List[MediaType]
    Definition Classes
    MimeDB
  7. val extensionMap: Map[String, MediaType]
  8. def forExtension(ext: String): Option[MediaType]
  9. implicit val http4sEqForMediaType: Eq[MediaType]
  10. implicit val http4sHttpCodecForMediaType: HttpCodec[MediaType]
  11. implicit val http4sShowForMediaType: Show[MediaType]
  12. def multipartType(subType: String, boundary: Option[String] = None): MediaType
  13. def parse(s: String): ParseResult[MediaType]

    Parse a MediaType

  14. lazy val text/event-stream: MediaType
  15. def unsafeParse(s: String): MediaType

    Parse a MediaType

    Parse a MediaType

    For totality, call #parse. For compile-time verification of literals, call #mediaType.

  16. object application extends application_0 with application_1 with application_2 with application_3
    Definition Classes
    MimeDB
  17. object audio
    Definition Classes
    MimeDB
  18. object chemical
    Definition Classes
    MimeDB
  19. object font
    Definition Classes
    MimeDB
  20. object image
    Definition Classes
    MimeDB
  21. object message
    Definition Classes
    MimeDB
  22. object model
    Definition Classes
    MimeDB
  23. object multipart
    Definition Classes
    MimeDB
  24. object text
    Definition Classes
    MimeDB
  25. object video
    Definition Classes
    MimeDB
  26. object x_conference
    Definition Classes
    MimeDB
  27. object x_shader
    Definition Classes
    MimeDB

Deprecated Value Members

  1. macro def mediaType(s: String): MediaType

    Literal syntax for MediaTypes.

    Literal syntax for MediaTypes. Invalid or non-literal arguments are rejected at compile time.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.20) use mediaType"" string interpolation instead