Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions data-url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ impl<'a> DataUrl<'a> {
&self.mime_type
}

/// Return whether the data URL uses base64 encoding.
pub fn is_base64(&self) -> bool {
self.base64
}

/// 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<F, E>(
Expand Down