Generation

generate functionTue, 15 Nov 2022

Fetch a http url and return the result

use reqwest; fn fetch(url: &str) -> String { let resp = reqwest::get(url).unwrap(); resp.text().unwrap() } fetch("https://www.google.com")

Questions about programming?Chat with your personal AI assistant