Function pact_ffi::mock_server::handles::pactffi_new_interaction

source ·
#[no_mangle]
pub extern "C" fn pactffi_new_interaction(
    pact: PactHandle,
    description: *const c_char
) -> InteractionHandle
Expand description

Creates a new HTTP Interaction and returns a handle to it. Calling this function with the same description as an existing interaction will result in that interaction being replaced with the new one.

  • description - The interaction description. It needs to be unique for each interaction.

Returns a new InteractionHandle.