MediaType

case class MediaType(rawValue: Option[String], parameters: Vector[(String, String)])
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def charset: String
Returns

the charset for this mediatype. Defaults to US-ASCII as per RFC2397 section 2

def rawCharset: Option[String]
def subTyp: String
Returns

The subtype for this mediatype. For example, will return ld for the mediatype application/ld+json. Returns empty string if there is no subtype.

def suffix: String
Returns

The suffix for this mediatype. For example, will return json for the mediatype application/ld+json. Returns empty string if there is no suffix.

override def toString: String
Definition Classes
Any
def typ: String
Returns

The type for this mediatype. For example, will return application for the mediatype application/ld+json

def value: String
Returns

the value of this mediatype. Defaults to text/plain as per RFC2397 section 2

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product