Skip to main content

validate_header

Function validate_header 

Source
pub fn validate_header(version_header: Option<&str>) -> Result<(), TrustFailure>
Expand description

Validate a protocol-version header without allocating on the trusted path.

This is the entry point for latency-sensitive intermediaries that need only a yes/no trust decision. Owned strings are created solely for rejection diagnostics.

ยงErrors

Returns the precise TrustFailure for missing, malformed, or legacy revisions.