Function encode_data_uri
pub fn encode_data_uri(media_type: Option<&str>, data: &[u8]) -> StringAvailable on crate feature
net only.Expand description
Render data as a data: uri payload, base64-encoding the bytes.
The media type is written verbatim; pass None for the RFC default.