Skip to main content

verify_headers_with

Function verify_headers_with 

Source
pub fn verify_headers_with(
    expected: Context<'_>,
    procedure: &str,
    commitment: ExpectedCommitment<'_>,
    now: i64,
    headers: &Headers,
) -> Result<Authorized, AuthError>
Expand description

Verify adapter headers against deployment-owned context and actual content, with the commitment expectation of a unary call, an UploadPack stream or an UploadPart stream.

ยงErrors

Rejects legacy/missing versions, malformed fields, context/content mismatch, a commitment of the wrong kind for the stream, validity-window failures and invalid signatures.