object MediaType extends MimeDB
- Source
- MediaType.scala
- Alphabetic
- By Inheritance
- MediaType
- MimeDB
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
Binary: Boolean
- Definition Classes
- MimeDB
-
val
Compressible: Boolean
- Definition Classes
- MimeDB
-
val
NotBinary: Boolean
- Definition Classes
- MimeDB
-
val
Uncompressible: Boolean
- Definition Classes
- MimeDB
- lazy val all: Map[(String, String), MediaType]
-
lazy val
allMediaTypes: List[MediaType]
- Definition Classes
- MimeDB
- val extensionMap: Map[String, MediaType]
- def forExtension(ext: String): Option[MediaType]
- implicit val http4sEqForMediaType: Eq[MediaType]
- implicit val http4sHttpCodecForMediaType: HttpCodec[MediaType]
- implicit val http4sShowForMediaType: Show[MediaType]
- def multipartType(subType: String, boundary: Option[String] = None): MediaType
-
def
parse(s: String): ParseResult[MediaType]
Parse a MediaType
- val parser: Parser[MediaType]
- lazy val text/event-stream: MediaType
-
def
unsafeParse(s: String): MediaType
Parse a MediaType
Parse a MediaType
For totality, call #parse. For compile-time verification of literals, call #mediaType.
-
object
application extends application_0 with application_1 with application_2 with application_3
- Definition Classes
- MimeDB
-
object
audio
- Definition Classes
- MimeDB
-
object
chemical
- Definition Classes
- MimeDB
-
object
font
- Definition Classes
- MimeDB
-
object
image
- Definition Classes
- MimeDB
-
object
message
- Definition Classes
- MimeDB
-
object
model
- Definition Classes
- MimeDB
-
object
multipart
- Definition Classes
- MimeDB
-
object
text
- Definition Classes
- MimeDB
-
object
video
- Definition Classes
- MimeDB
-
object
x_conference
- Definition Classes
- MimeDB
-
object
x_shader
- Definition Classes
- MimeDB