DataUrl

data class DataUrl(val mediaType: String, val parameters: Map<String, List<String>>, val base64: Boolean, val data: String)(source)

Parts of the data URL.

See details about data URLs at MDN data URLs.

Example:

  1. data:text/plain;base64,SGVsbG8gV29ybGQ=:

DataUrl(
mediaType = "text/plain",
parameters = mapOf("charset" to listOf("US-ASCII")),
base64 = true,
data = "SGVsbG8gV29ybGQ=",
)

Constructors

Link copied to clipboard
constructor(mediaType: String, parameters: Map<String, List<String>>, base64: Boolean, data: String)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard