Function pact_ffi::verifier::pactffi_verifier_url_source

source ·
#[no_mangle]
pub extern "C" fn pactffi_verifier_url_source(
    handle: *mut VerifierHandle,
    url: *const c_char,
    username: *const c_char,
    password: *const c_char,
    token: *const c_char
)
Expand description

Adds a URL as a source to verify. The Pact file will be fetched from the URL.

If a username and password is given, then basic authentication will be used when fetching the pact file. If a token is provided, then bearer token authentication will be used.

§Safety

All string fields must contain valid UTF-8. Invalid UTF-8 will be replaced with U+FFFD REPLACEMENT CHARACTER.