ContentType
Represents a value for a Content-Type header.
Constructors
Link copied to clipboard
constructor(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.
Properties
Functions
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
Returns true if the content type represents textual data. For binary data, returns false.
Link copied to clipboard
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
Link copied to clipboard
Creates a copy of this type without any parameters
Link copied to clipboard