For a description of the behavior of apply
, parse
, safeApply
and unsafeApply
methods, see sttp.model.
- Companion
- class
Type members
Value members
Concrete methods
- Value Params
- mediaTypes
Candidate media types
- ranges
Content type ranges, sorted in order of preference.
def unsafeApply(mainType: String, subType: String, charset: Option[String], parameters: Map[String, String]): MediaType
- Throws
- IllegalArgumentException
If the main type or subt type contain illegal characters.