Skip to main content

load_dictionary

Function load_dictionary 

Source
pub async fn load_dictionary(source: &str, http: &Client) -> Result<Vec<u8>>
Expand description

Load a ZSTD dictionary from a local path or URL.

  • If source is a local file path → load directly.
  • If source is an HTTP(S) URL → download and cache under ~/.cache/atrg/.
  • Returns the raw bytes of the dictionary.