class MediaType
An RFC 2045 Media Type, appropriate to describe the content type of an HTTP request or response body.
val subtype: String |
|
val type: String |
fun charset(defaultValue: Charset? = null): Charset?
Returns the charset of this media type, or |
|
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun subtype(): String
Returns a specific media subtype, such as "plain" or "png", "mpeg", "mp4" or "xml". |
|
fun toString(): String
Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a Content-Type header. |
|
fun type(): String
Returns the high-level media type, such as "text", "image", "audio", "video", or "application". |
fun get(string: String): MediaType
Returns a media type for |
|
fun parse(string: String): MediaType?
Returns a media type for |