http_get

Function http_get 

Source
pub fn http_get(url: &str) -> Result<String, Error>
Expand description

Sends an HTTP GET request to the specified URL and returns the response body as a String.

§Arguments

  • url - A string slice that holds the URL to send the GET request to.

§Returns

A Result containing the response body as a String on success, or a reqwest::Error on failure.