Function pact_matching::binary_utils::match_content_type
source ยท pub fn match_content_type<S>(
data: &[u8],
expected_content_type: S
) -> Result<()>
Expand description
Compares the binary data using a magic test and comparing the resulting detected content type against the expected content type