Function pact_ffi::models::iterators::pactffi_pact_sync_http_iter_next
source · #[no_mangle]
pub extern "C" fn pactffi_pact_sync_http_iter_next(
iter: *mut PactSyncHttpIterator
) -> *mut SynchronousHttp
Expand description
Get the next synchronous HTTP request/response interaction from the V4 pact. As the interactions returned are owned by the iterator, they do not need to be deleted but will be cleaned up when the iterator is deleted.
Will return a NULL pointer when the iterator has advanced past the end of the list.
§Safety
This function is safe.
Deleting an interaction returned by the iterator can lead to undefined behaviour.
§Error Handling
This function will return a NULL pointer if passed a NULL pointer or if an error occurs.