Skip to content

A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.

561 B
Raw Blame
package opensuite.script;

import java.util.List;

import opensuite.core.HttpMessage;

/**
 * How one run ended: the output, the error (null when OK), and the request the
 * script asked for, which is kept only when the run ended OK.
 */
public record RunResult(Status status, List<String> log, boolean logCut, String error, long millis, HttpMessage newRequest) {

    public enum Status { OK, FAILED, TIMEOUT, STOPPED }

    static RunResult failed(Status status, String error) {
        return new RunResult(status, List.of(), false, error, 0, null);
    }
}