pub fn parse(location: &str, bytes: &[u8]) -> Result<Catalog>
A catalog from a file’s bytes and where it came from (a URL or a path): a SWORD repository’s when location ends in .tar.gz, else its text (parse_text)
location
.tar.gz
parse_text