rikka 0.1.0

Async HTTP client for native & WASM.
Documentation
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// The request could not be performed.
    #[error("transport: {0}")]
    Transport(String),

    /// The request could not be constructed.
    #[error("request: {0}")]
    Request(String),

    /// A header name or value was rejected.
    #[error("header: {0}")]
    Header(String),

    /// A JSON payload could not be deserialized.
    #[cfg(feature = "json")]
    #[error(transparent)]
    Json(#[from] serde_json::Error),
}

pub type Result<T> = std::result::Result<T, Error>;