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")

Want to kickstart your project?Use the new AI Studio to create your code