Skip to main content

Crate parlov_output

Crate parlov_output 

Source
Expand description

Output formatters for parlov: terminal table, structured JSON, and SARIF v2.1.0.

Modules§

wire
Helpers for building --verbose ProbeContext / ExchangeContext bundles.

Structs§

BodySamplesBundle
Per-side body samples, UTF-8-safe truncated to 256 bytes with a (truncated, total Nb) marker when over cap, or <N bytes, non-text> when not valid UTF-8.
ChainProvenance
Provenance for Phase 2 chain-derived ProbeSpecs.
ExchangeContext
Always-present block: response status codes; --verbose adds headers and body samples.
HeadersBundle
Per-side header sets, filtered to a security-relevant allowlist.
ProbeContext
Always-present block: what was actually sent on the wire.
ReproInfo
Reproducible curl commands for the baseline and probe requests of a finding.
ScanFinding
A single finding from a scan run – one strategy applied to one method.

Functions§

build_curl
Builds a multi-line curl command from a ProbeDefinition.
render_endpoint_verdict_json
Renders a scan result with endpoint-level verdict as nested JSON.
render_endpoint_verdict_sarif
Renders scan findings with endpoint-level verdict as SARIF v2.1.0.
render_endpoint_verdict_table
Renders an endpoint-level verdict summary followed by per-strategy detail rows.
render_json
Renders a single OracleResult as the v1.2.0 nested JSON schema.
render_sarif
Renders a single OracleResult as a SARIF v2.1.0 JSON string.
render_scan_json
Renders a slice of scan findings as the v1.2.0 nested JSON schema.
render_scan_sarif
Renders a slice of ScanFindings as SARIF v2.1.0.
render_scan_table
Renders a slice of scan findings as a summary terminal table.
render_table
Renders an OracleResult as a human-readable terminal table.