Struct data_url::DataUrl [−][src]
pub struct DataUrl<'a> { /* fields omitted */ }
Implementations
https://fetch.spec.whatwg.org/#data-url-processor
but starting from a string rather than a parsed Url
, to avoid extra string copies.
Streaming-decode the data URL’s body to write_body_bytes
,
and return the URL’s fragment identifier if it has one.
pub fn decode_to_vec(
&self
) -> Result<(Vec<u8>, Option<FragmentIdentifier<'a>>), InvalidBase64>
pub fn decode_to_vec(
&self
) -> Result<(Vec<u8>, Option<FragmentIdentifier<'a>>), InvalidBase64>
Return the decoded body, and the URL’s fragment identifier if it has one.