Companion
Functions
Link copied to clipboard
Parses a string representing a Content-Type
header into a ContentType instance.
Properties
Extensions
Link copied to clipboard
Link copied to clipboard
fun ContentType.Companion.defaultForFileExtension(extension: String): ContentType
Content copied to clipboard
Default ContentType for extension
Link copied to clipboard
Default ContentType for file path
Link copied to clipboard
fun ContentType.Companion.fromFileExtension(ext: String): List<ContentType>
Content copied to clipboard
Recommended content type by file name extension
Link copied to clipboard
Recommended content types by file path