Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    verdict: &Verdict,
    command_preview: &str,
    webhooks: &[WebhookConfig],
    custom_dlp_patterns: &[String],
)
Expand description

Dispatch webhook notifications for a verdict, if configured.

Spawns a background thread per webhook endpoint. The main thread is never blocked. Auxiliary delivery/configuration diagnostics are debug-only so shell hooks don’t turn best-effort webhook failures into native-command noise.