Parse and handle data URIs in Elm.
{ mediaType : MediaType
, data : Data
}
The contents of the data URI
The data contained within a aata URI can either be base64 encoded raw bytes or a URL encoded string.
fromString : String -> Maybe DataUri
Attempt to parse a string as a data URI.
parser : Parser DataUri
Media types can be a part of another data schema, like the data URI scheme, so it can be helpful to access the internal parser.