#![forbid(future_incompatible, rust_2018_idioms)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
#![cfg_attr(feature = "docs", feature(doc_cfg))]
#![cfg_attr(
not(all(feature = "wasm_client", target_arch = "wasm32")),
forbid(unsafe_code)
)]
#[cfg_attr(feature = "docs", doc(cfg(curl_client)))]
#[cfg(all(feature = "curl_client", not(target_arch = "wasm32")))]
pub mod isahc;
#[cfg_attr(feature = "docs", doc(cfg(wasm_client)))]
#[cfg(all(feature = "wasm_client", target_arch = "wasm32"))]
pub mod wasm;
#[cfg_attr(feature = "docs", doc(cfg(native_client)))]
#[cfg(any(feature = "curl_client", feature = "wasm_client"))]
pub mod native;
#[cfg_attr(feature = "docs", doc(cfg(h1_client)))]
#[cfg(feature = "h1_client")]
pub mod h1;
#[cfg_attr(feature = "docs", doc(cfg(hyper_client)))]
#[cfg(feature = "hyper_client")]
pub mod hyper;
pub type Request = http_types::Request;
pub type Response = http_types::Response;
pub use async_trait::async_trait;
pub use http_types;
#[async_trait]
pub trait HttpClient: std::fmt::Debug + Unpin + Send + Sync + 'static {
async fn send(&self, req: Request) -> Result<Response, Error>;
}
pub type Body = http_types::Body;
pub type Error = http_types::Error;