grillon 0.6.0

Grillon offers an elegant and natural way to approach API testing in Rust.
Documentation
//! The `http` DSL provides built-in functions and types to perform declarative
//! assertions against an http response.
//!
//! The following example demonstrates some of the assertions we can run against
//! an http response of a specific endpoint.
//!
//! ```rust
//! use grillon::{Result, Grillon, StatusCode, json};
//! use grillon::dsl::{contains, is, is_less_than, http::is_success};
//! use grillon::header::{HeaderValue, CONTENT_TYPE};
//!
//! #[tokio::test]
//! async fn check_users_endpoint() -> Result<()> {
//!    Grillon::new("https://jsonplaceholder.typicode.com")?
//!        .get("albums/1")
//!        .assert()
//!        .await
//!        .status(is_success())
//!        .headers(contains(vec![
//!             (CONTENT_TYPE, HeaderValue::from_static("application/json; charset=utf-8"))
//!         ]))
//!        .json_body(is(json!({
//!             "id": 1,
//!             "title": "quidem molestiae enim",
//!             "userId": 1
//!         })))
//!        .response_time(is_less_than(500));
//!
//!    Ok(())
//! }

mod body;
mod header;
mod headers;
mod status;
mod time;

pub use self::body::JsonBodyDsl;
pub use self::header::HeaderDsl;
pub use self::headers::HeadersDsl;
pub use self::status::*;
pub use self::time::TimeDsl;