stubr 0.6.2

Wiremock implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{
    super::super::super::model::response::{template::data::RequestData, ResponseStub},
    StdResponse, Verifier,
};

mod json;
mod json_templating;
mod text;
mod text_templating;

pub struct BodyVerifier;

impl Verifier<'_> for BodyVerifier {
    fn verify(self, stub: &'_ ResponseStub, name: &'_ str, req: &'_ RequestData, resp: &'_ mut StdResponse) {
        json::JsonBodyVerifier.verify(stub, name, req, resp);
        text::TextBodyVerifier.verify(stub, name, req, resp);
    }
}