Function pact_ffi::models::message::pactffi_message_new_from_body

source ·
#[no_mangle]
pub extern "C" fn pactffi_message_new_from_body(
    body: *const c_char,
    content_type: *const c_char
) -> *mut Message
Expand description

Constructs a Message from a body with a given content-type.

§Safety

This function is safe.

§Error Handling

If the body or content type are invalid or not UTF-8 encoded, returns NULL.