[−][src]Function rustwtxt::pull_twtxt
pub fn pull_twtxt(url: &str) -> Result<String, Box<dyn Error>>
Pulls the target twtxt.txt file from the specified URL.
Examples
let out = if let Ok(data) = rustwtxt::pull_twtxt("https://some-url-here.ext/twtxt.txt") { data } else { String::new() };