Function seed::fetch::post

source ·
pub fn post<S: Serialize>(
    url: &str,
    payload: S,
    request_opts: Option<RequestOpts>,
    callback: Box<dyn Fn(JsValue)>
)
Expand description

A wrapper for fetch that serializes the payload