#[no_mangle]
pub extern "C" fn pactffi_sync_http_get_request_contents(
interaction: *const SynchronousHttp
) -> *const c_char
Expand description
Get the request contents of a SynchronousHttp
interaction in string form.
§Safety
The returned string must be deleted with pactffi_string_delete
.
The returned string can outlive the interaction.
§Error Handling
If the interaction is NULL, returns NULL. If the body of the request is missing, then this function also returns NULL. This means there’s no mechanism to differentiate with this function call alone between a NULL body and a missing body.