Function get_file_base64s
Source pub async fn get_file_base64s(
markdown: impl AsRef<str>,
regex: Regex,
guess_mime_type: fn(url: &str) -> Mime,
decide_download: fn(headers: &HeaderMap) -> bool,
timeout: Duration,
) -> Vec<MatchedFiles>
Expand description
§Panics
regex
must have a Regex with atleast 1 capture group with file URL as first capture group, else it PANICS
§Arguments
guess_mime_type
is used to detect mimi_type of URL pointing to file system or web resource
with no “Content-Type” header.