Package-level declarations

Media types definitions and constants for default media types.

Types

Link copied to clipboard
data class MediaType(val group: MediaTypeGroup, val type: String)

Media type (also known as MIME type).

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun extensionsOf(mediaType: MediaType): List<String>
Link copied to clipboard
fun mediaTypeOf(file: File): MediaType
fun mediaTypeOf(uri: URI): MediaType
fun mediaTypeOf(url: URL): MediaType
fun mediaTypeOf(path: Path): MediaType
fun mediaTypeOf(extension: String): MediaType
Link copied to clipboard
fun mediaTypeOfOrNull(file: File): MediaType?
fun mediaTypeOfOrNull(path: Path): MediaType?
fun mediaTypeOfOrNull(extension: String): MediaType?
Link copied to clipboard
fun parseMediaType(fullType: String): MediaType
Link copied to clipboard
fun pathExtension(path: String): String