Skip to main content

run_external_observatory_live

Function run_external_observatory_live 

Source
pub async fn run_external_observatory_live(
    baseline_har: &str,
    target_url: &str,
    probes: &[LiveObservatoryProbe],
    profile: &AnalyzerProfile,
    target_class: TargetClass,
) -> Result<ObservatoryReport, ObservatoryError>
Expand description

Execute live observatory probes and compare them with the baseline HAR.

This helper is feature-gated behind live-validation and performs HTTP requests using reqwest, synthesizing one HAR payload per probe.

ยงErrors

Returns ObservatoryError::EmptyExternalCases when no probes are supplied, ObservatoryError::LiveCapture when a probe request fails, and ObservatoryError::Har when generated HAR payloads cannot be parsed.