tauri_wasm/
headers.rs

1use {
2    crate::{Error, invoke::IntoHeaders},
3    wasm_bindgen::JsValue,
4    web_sys::Headers,
5};
6
7impl IntoHeaders for Headers {
8    #[inline]
9    fn into_headers(self) -> Result<JsValue, Error> {
10        Ok(JsValue::from(self))
11    }
12}