Function soup::uri_decode_data_uri

source ·
pub fn uri_decode_data_uri(uri: &str) -> (Bytes, Option<GString>)
Expand description

Decodes the given data URI and returns its contents and @content_type.

§uri

a data URI, in string form

§Returns

a #GBytes with the contents of @uri, or None if @uri is not a valid data URI

§content_type

location to store content type