parse

abstract fun parse(value: String): ContentType

从一个包含完整内容类型值的字符串中解析出 ContentType 对象。

Return

解析后的 ContentType 实例。

Parameters

value

要解析的字符串,例如 "text/html; charset=UTF-8"