assert_doesnt_have_header

Macro assert_doesnt_have_header 

Source
macro_rules! assert_doesnt_have_header {
    ($res:expr, $header:ident) => { ... };
    ($res:expr, $header:expr) => { ... };
}
Expand description

Assertion macro to indicate that a Response doesn’t have the header it needs.

§Example

let res = Response::builder().status(StatusCode::OK).body(()).expect("response to be avaliable");
charted_testkit::assert_doesnt_have_header!(res, header::ACCEPT);