Documentation: Burp Logger view filter
var highlights = Map.of(
ToolType.TARGET, HighlightColor.RED,
ToolType.PROXY, HighlightColor.BLUE,
ToolType.INTRUDER, HighlightColor.CYAN,
ToolType.REPEATER, HighlightColor.MAGENTA,
ToolType.EXTENSIONS, HighlightColor.ORANGE,
ToolType.SCANNER, HighlightColor.GREEN,
ToolType.SEQUENCER, HighlightColor.PINK
);
requestResponse.annotations().setHighlightColor(
highlights.getOrDefault(requestResponse.toolSource().toolType(), HighlightColor.NONE)
);
return true;
var delta = requestResponse.timingData().timeBetweenRequestSentAndStartOfResponse();
var threshold = Duration.ofSeconds(3);
return delta != null && delta.toMillis() >= threshold.toMillis();