nodejs_helper/
request.rs

1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen(module="/node/request-helper.js")]
4extern "C" {
5    pub fn request(method: &str, url: &str) -> String;
6    pub fn fetch(url: &str) -> Vec<u8>;
7    pub fn fetch_as_string(url: &str) -> String;
8    pub fn request_with_options(method: &str, url: &str, options: &str) -> String;
9}