gloo_net/lib.rs
1//! HTTP requests library for WASM apps. It provides idiomatic Rust bindings for the `web_sys`
2//! `fetch` and `WebSocket` API.
3//!
4//! See module level documentation for [`http`] and [`websocket`] to learn more.
5
6#![deny(
7 missing_docs,
8 missing_debug_implementations,
9 missing_copy_implementations
10)]
11#![cfg_attr(docsrs, feature(doc_cfg))]
12
13mod error;
14#[cfg(feature = "eventsource")]
15#[cfg_attr(docsrs, doc(cfg(feature = "eventsource")))]
16pub mod eventsource;
17#[cfg(feature = "http")]
18#[cfg_attr(docsrs, doc(cfg(feature = "http")))]
19pub mod http;
20#[cfg(feature = "websocket")]
21#[cfg_attr(docsrs, doc(cfg(feature = "websocket")))]
22pub mod websocket;
23
24pub use error::*;