object MediaType extends MediaTypes with Serializable
For a description of the behavior of apply
, parse
, safeApply
and unsafeApply
methods, see sttp.model.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MediaType
- Serializable
- Serializable
- MediaTypes
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
ApplicationGzip: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationJson: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationOctetStream: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationPdf: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationRtf: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationXWwwFormUrlencoded: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationXhtml: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationXml: MediaType
- Definition Classes
- MediaTypes
-
val
ApplicationZip: MediaType
- Definition Classes
- MediaTypes
-
val
ImageGif: MediaType
- Definition Classes
- MediaTypes
-
val
ImageJpeg: MediaType
- Definition Classes
- MediaTypes
-
val
ImagePng: MediaType
- Definition Classes
- MediaTypes
-
val
ImageTiff: MediaType
- Definition Classes
- MediaTypes
-
val
MultipartAlternative: MediaType
- Definition Classes
- MediaTypes
-
val
MultipartFormData: MediaType
- Definition Classes
- MediaTypes
-
val
MultipartMixed: MediaType
- Definition Classes
- MediaTypes
-
val
TextCacheManifest: MediaType
- Definition Classes
- MediaTypes
-
val
TextCalendar: MediaType
- Definition Classes
- MediaTypes
-
val
TextCss: MediaType
- Definition Classes
- MediaTypes
-
val
TextCsv: MediaType
- Definition Classes
- MediaTypes
-
val
TextEventStream: MediaType
- Definition Classes
- MediaTypes
-
val
TextHtml: MediaType
- Definition Classes
- MediaTypes
-
val
TextJavascript: MediaType
- Definition Classes
- MediaTypes
-
val
TextPlain: MediaType
- Definition Classes
- MediaTypes
-
val
TextPlainUtf8: MediaType
- Definition Classes
- MediaTypes
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bestMatch(mediaTypes: Seq[MediaType], ranges: Seq[ContentTypeRange]): Option[MediaType]
- mediaTypes
Candidate media types
- ranges
Content type ranges, sorted in order of preference.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parse(t: String): Either[String, MediaType]
- def safeApply(mainType: String, subType: String, charset: Option[String] = None, parameters: Map[String, String] = Map.empty): Either[String, MediaType]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unsafeApply(mainType: String, subType: String, charset: Option[String] = None, parameters: Map[String, String] = Map.empty): MediaType
- Exceptions thrown
IllegalArgumentException
If the main type or subt type contain illegal characters.
- def unsafeParse(s: String): MediaType
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated