#[no_mangle]
pub extern "C" fn pactffi_pact_interaction_as_synchronous_http(
    interaction: *const PactInteraction
) -> *const SynchronousHttp
Expand description

Casts this interaction to a SynchronousHttp interaction. Returns a NULL pointer if the interaction can not be casted to a SynchronousHttp interaction (for instance, it is a message interaction). The returned pointer must be freed with pactffi_sync_http_delete when no longer required.

§Safety

This function is safe as long as the interaction pointer is a valid pointer.

§Errors

On any error, this function will return a NULL pointer.