Function pact_ffi::mock_server::handles::pactffi_with_header

source ·
#[no_mangle]
pub extern "C" fn pactffi_with_header(
    interaction: InteractionHandle,
    part: InteractionPart,
    name: *const c_char,
    index: size_t,
    value: *const c_char
) -> bool
👎Deprecated
Expand description

Configures a header for the Interaction. Returns false if the interaction or Pact can’t be modified (i.e. the mock server for it has already started)

  • part - The part of the interaction to add the header to (Request or Response).
  • name - the header name.
  • value - the header value.
  • index - the index of the value (starts at 0). You can use this to create a header with multiple values

DEPRECATED: Use pactffi_with_header_v2, which deals with multiple values correctly