CustomMimeType

data class CustomMimeType(val raw: String) : MimeType(source)

A custom implementation of MimeType that wraps a raw MIME type string. Use this when you need to work with MIME types that aren't defined in the standard set.

Parameters

raw

The raw MIME type string (e.g., "application/custom", "text/x-custom")

Constructors

Link copied to clipboard
constructor(raw: String)

Properties

Link copied to clipboard

An array of file extensions commonly associated with this MIME type. For example, "text/html" might have extensions "html", "htm". Returns an empty array by default if no extensions are known.

Link copied to clipboard
open override val raw: String