ContentType
Represents a value for a Content-Type
header.
Constructors
Link copied to clipboard
fun ContentType(contentType: String, contentSubtype: String, parameters: List<HeaderValueParam> = emptyList())
Types
Link copied to clipboard
object Application
Provides a list of standard subtypes of an application
content type.
Functions
Link copied to clipboard
Creates a copy of this
type without any parameters
Link copied to clipboard
Properties
Extensions
Link copied to clipboard
Extracts a Charset value from the given Content-Type
, Content-Disposition
or similar header value.
Link copied to clipboard
Recommended file name extensions for this content type
Link copied to clipboard
Creates a copy of this
type with the added charset parameter with charset value.
Link copied to clipboard
Creates a copy of this
type with the added charset parameter with charset value if ContentType is not ignored