Function pact_matching::match_body
source · pub async fn match_body(
expected: &(dyn HttpPart + Send + Sync),
actual: &(dyn HttpPart + Send + Sync),
context: &(dyn MatchingContext + Send + Sync),
header_context: &(dyn MatchingContext + Send + Sync)
) -> BodyMatchResult
Expand description
Matches the actual body to the expected one. This takes into account the content type of each.