| Crates.io | silver_surf |
| lib.rs | silver_surf |
| version | 0.1.4 |
| created_at | 2020-04-27 12:46:51.679084+00 |
| updated_at | 2020-06-08 12:02:19.645615+00 |
| description | A wrapper arround surf |
| homepage | |
| repository | https://github.com/lenscas/silver_surf |
| max_upload_size | |
| id | 234645 |
| size | 8,740 |
Made for use in card_game.
Silver surf is a wrapper around surf to get rid of the builder pattern that surf uses and replaces it with a config struct. Optionally, you can enable the stdweb wrapper if you want to build for the web but don't want to use wasm-bindgen.
let res = call::<()>(Config {
url: "your_url".into(),
method: Method::Get,
body: None,
headers: None,
}).json::<YourStruct>().await;