create

abstract fun create(contentType: String, contentSubtype: String): ContentType

通过指定主类型和子类型来创建一个 ContentType 对象。

Return

一个新的 ContentType 实例,代表 "application/json"

Parameters

contentType

主类型,例如 "application"

contentSubtype

子类型,例如 "json"