get_headers

Function get_headers 

Source
pub async fn get_headers() -> Result<HashMap<String, String>>
Expand description

Get all HTTP headers as seen by the server.

ยงExample

let headers = myip_foo::get_headers().await?;
for (key, value) in headers {
    println!("{}: {}", key, value);
}