Function seed::fetch::fetch

source ·
pub fn fetch(
    method: Method,
    url: &str,
    request_opts: Option<RequestOpts>,
    callback: Box<dyn Fn(JsValue)>
)
Expand description

A wrapper over web_sys’s fetch api, to simplify code https://rustwasm.github.io/wasm-bindgen/examples/fetch.html