Function pact_models::v4::calc_content_type[][src]

pub fn calc_content_type(
    body: &OptionalBody,
    headers: &Option<HashMap<String, Vec<String>>>
) -> Option<ContentType>
Expand description

Calculate the context type of the body, using the content type from the body. If that is not set, look for a Content-Type header otherwise look at the body contents