#[no_mangle]
pub extern "C" fn pactffi_sync_http_get_response_contents_bin(
interaction: *const SynchronousHttp
) -> *const c_uchar
Expand description
Get the response contents of a SynchronousHttp
interaction as a pointer to an array of bytes.
§Safety
The number of bytes in the buffer will be returned by pactffi_sync_http_get_response_contents_length
.
It is safe to use the pointer while the interaction is not deleted or changed. Using the pointer
after the interaction is mutated or deleted may lead to undefined behaviour.
§Error Handling
If the interaction is NULL, returns NULL. If the body of the response is missing, then this function also returns NULL.