Companion

Functions

Link copied to clipboard

The content of url, or null when it is not a data: URL or its body does not decode.

Link copied to clipboard
fun essenceOf(url: String): String?

The media type essence that url declares, without decoding its body, or null when url is not a data: URL. Cheap enough to ask of every image source.

Link copied to clipboard

Whether url is a data: URL, whatever the case of its scheme and the spaces around it.