get

Function get 

Source
pub fn get(
    url: impl Into<String>,
    headers: impl IntoIterator<Item = (String, String)>,
) -> Result<Response, HttpGetError>
Expand description

HTTP GET


http::get("https://gomomento.com", [])?;
http::get(
    "https://gomomento.com",
    [
        ("authorization".to_string(), "abc123".to_string()),
    ]
)?;