#![forbid(unsafe_code)]
#![deny(clippy::todo)]
#![deny(clippy::unimplemented)]
#![deny(clippy::dbg_macro)]
#![cfg_attr(
not(test),
deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
)]
pub mod http;
pub mod net;
pub mod types;
#[cfg(not(target_arch = "wasm32"))]
pub use net::dns::{DnsError, DnsResolver, Resolving};
pub use net::events::NetEvent;
pub use net::fetcher::{Fetcher, FetcherConfig};
pub use net::fetcher_context::{FetcherContext, NullContext};
#[cfg(not(target_arch = "wasm32"))]
pub use net::hsts::{HstsEntry, HstsStore, InMemoryHstsStore};
pub use net::mixed_content::MixedContentPolicy;
pub use net::null_emitter::NullEmitter;
pub use net::observer::NetObserver;
#[cfg(not(target_arch = "wasm32"))]
pub use net::proxy::{ProxyAuth, ProxyConfig, ProxyRule, ProxyScope};
pub use net::referrer::ReferrerPolicy;
pub use net::request_ref::RequestReference;
pub use net::shared_body::SharedBody;
pub use net::simple::simple_get;
#[cfg(not(target_arch = "wasm32"))]
pub use net::simple::{sync_fetch, sync_get};
pub use net::types::{
BlockReason, BoxedAsyncRead, FetchRequest, FetchRequestBuilder, FetchResult, FetchResultMeta,
Initiator, NetError, Priority, RequestBody, ResourceKind,
};
pub use types::{PeekBuf, RequestId};