MediaType

org.llm4s.media.MediaType
See theMediaType companion trait
object MediaType

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
MediaType.type

Members list

Type members

Classlikes

case object Bmp extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Bmp.type
case object Flac extends AudioMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Flac.type
case object Gif extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Gif.type
case object Jpeg extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Jpeg.type
case object Mp3 extends AudioMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Mp3.type
case object Ogg extends AudioMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Ogg.type
case object Png extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Png.type
case object Tiff extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Tiff.type
case object Wav extends AudioMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Wav.type
case object WebP extends ImageMediaType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
WebP.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromExtension(extension: String): Option[MediaType]

The media type named by a file extension, with or without a leading dot.

The media type named by a file extension, with or without a leading dot.

Attributes

def fromMimeType(mimeType: String): Option[MediaType]

The media type with this MIME string, ignoring any ;charset=... parameters.

The media type with this MIME string, ignoring any ;charset=... parameters.

Attributes

def fromPath(path: String): Option[MediaType]

The media type named by the extension of a file path or URL.

The media type named by the extension of a file path or URL.

Attributes

def imageFromExtension(extension: String): Option[ImageMediaType]

As fromExtension, but only matches image types.

As fromExtension, but only matches image types.

Attributes

def imageFromMimeType(mimeType: String): Option[ImageMediaType]

As fromMimeType, but only matches image types.

As fromMimeType, but only matches image types.

Attributes

def imageFromPath(path: String): Option[ImageMediaType]

As fromPath, but only matches image types.

As fromPath, but only matches image types.

Attributes

Concrete fields

val all: Seq[MediaType]

Every known media type.

Every known media type.

Attributes

val audio: Seq[AudioMediaType]

Every known audio type, in declaration order.

Every known audio type, in declaration order.

Attributes

Every known image type, in declaration order.

Every known image type, in declaration order.

Attributes