bouillon 0.2.1

A thin, opinionated wrapper around soup that provides an easy, fluent API for sending HTTP requests.
Documentation
#![allow(clippy::manual_async_fn)]
#![warn(missing_debug_implementations)]
#![deny(clippy::missing_safety_doc)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(test, deny(warnings))]

//! A thin wrapper around [`soup`] providing an easy, fluent API for sending HTTP requests.
//!
//! The API an adaptation of the awesome [`reqwest`](https://docs.rs/reqwest) crate.
//!
//! ## Example
//! ```no_run
//! # use bouillon::soup;
//! use soup::{Session, prelude::*};
//! use bouillon::SessionExt as _;
//!
//! # async fn request() -> bouillon::Result<()> {
//! let session = Session::new();
//! session.set_user_agent("buillon-example");
//! let robots_txt = session
//!     .get("https://httpbin.org/robots.txt")
//!     .send()
//!     .await?
//!     .error_for_status()?
//!     .text()
//!     .await?;
//! print!("{robots_txt}");
//! # Ok(())
//! # }
//! ```

pub use soup;
pub use soup::{gio, glib};

mod request;
pub use request::*;
mod into_uri;
pub use into_uri::*;
mod method;
pub use method::*;
mod body;
pub use body::*;
mod response;
pub use response::*;
mod error;
pub use error::*;
mod session_ext;
pub use session_ext::*;
#[cfg(any(feature = "json", feature = "form"))]
mod message_headers_ext;
mod uri_builder;
pub(crate) mod utils;