Skip to main content

extract_captures

Function extract_captures 

Source
pub fn extract_captures(
    operation: &BatchOperation,
    response_body: &str,
    store: &mut VariableStore,
) -> Result<(), Error>
Expand description

Extracts captured values from a response and stores them in the variable store.

For capture entries, the JQ result is stored as a scalar string. For capture_append entries, the JQ result is appended to a list.

ยงErrors

Returns an error if JQ evaluation fails or produces no output.