MediaType

scamper.http.types.MediaType
See theMediaType companion object
trait MediaType

Standardized type for Content-Type header value.

Attributes

See also
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def params: Map[String, String]

Gets parameters.

Gets parameters.

Attributes

def subtypeName: String

Gets subtype name.

Gets subtype name.

Attributes

def typeName: String

Gets type name.

Gets type name.

Attributes

Concrete methods

def fullName: String

Gets full name.

Gets full name.

Attributes

def isApplication: Boolean

Tests type name for application.

Tests type name for application.

Attributes

def isAudio: Boolean

Tests type name for audio.

Tests type name for audio.

Attributes

def isFont: Boolean

Tests type name for font.

Tests type name for font.

Attributes

def isImage: Boolean

Tests type name for image.

Tests type name for image.

Attributes

def isMessage: Boolean

Tests type name for message.

Tests type name for message.

Attributes

def isMultipart: Boolean

Tests type name for multipart.

Tests type name for multipart.

Attributes

def isText: Boolean

Tests type name for text.

Tests type name for text.

Attributes

def isVideo: Boolean

Tests type name for video.

Tests type name for video.

Attributes

def setParams(params: Map[String, String]): MediaType

Creates media types with new parameters.

Creates media types with new parameters.

Attributes

def setParams(params: (String, String)*): MediaType

Creates media types with new parameters.

Creates media types with new parameters.

Attributes

def toRange(weight: Float): MediaRange

Converts to media range with supplied weight.

Converts to media range with supplied weight.

Attributes

Concrete fields

lazy override val toString: String

Returns formatted media type.

Returns formatted media type.

Attributes