pub fn fetch<S>(
method: Method,
url: &str,
payload: Option<String>,
headers: Option<HashMap<&str, &str, S>>
) -> Promisewhere
S: BuildHasher,
Expand description
A wrapper over web_sys’s fetch api, to simplify code https://rustwasm.github.io/wasm-bindgen/examples/fetch.html