[−][src]Function pact_mock_server_ffi::with_binary_file
#[no_mangle]pub extern "C" fn with_binary_file(
interaction: InteractionHandle,
part: InteractionPart,
content_type: *const c_char,
body: *const c_char,
size: size_t
)
Adds a binary file as the body with the expected content type and example contents. Will use a mime type matcher to match the body.
interaction
- Interaction handle to set the body for.part
- Request or response part.content_type
- Expected content type.body
- example body contents in bytes