Skip to main content

Module transport

Module transport 

Source
Expand description

HTTP transport — Client wraps reqwest with auth header injection + timeout + per Client spec rev1 §2 + Rev 2 amendment §2 + §4.

Phase 1 substrate: fetch_verdict is the first transport consumer (CLEANLIB-30); subsequent CLEANLIB-N PRs add scan / audit / policy preview / fetch verb impls reusing this Client.

Structs§

AuditFilters
Filters for Client::audit (CLEANLIB-813). All fields are optional — AuditFilters::default() (or any ..Default::default() spread) queries the full audit log, matching the prior audit(None, None, None) shape byte-for-byte.
Client
Client is the cleanlib-client HTTP transport handle. Cheap to clone; share across verbs in the same process.

Enums§

RemediationOutcome
Outcome of a remediation fetch (CLEANLIB-733 Rust remediation client). Mirrors the sdk-py/js/go RemediationOrAbsent discriminated union: a 404 is a distinct, cacheable “no data” answer — never collapsed into a transient.