Function pact_mock_server_ffi::with_query_parameter [−][src]
#[no_mangle] pub extern "C" fn with_query_parameter(
interaction: InteractionHandle,
name: *const c_char,
index: size_t,
value: *const c_char
) -> bool
Expand description
Configures a query parameter for the Interaction. Returns false if the interaction or Pact can’t be modified (i.e. the mock server for it has already started)
name
- the query parameter name.value
- the query parameter value.index
- the index of the value (starts at 0). You can use this to create a query parameter with multiple values