Skip to main content

validate_request_header

Function validate_request_header 

Source
pub fn validate_request_header(
    method: u64,
    header: &[u8; 11],
) -> Result<(), Error>
Expand description

Admit an exact 11-byte request header before copying its payload.

Requires ASCII IW, the expected method in little-endian order, and request direction zero. This allocates nothing and examines no payload bytes. Success does not authenticate the sender or admit payload resources/schema.

ยงErrors

Returns Error::Identity for any marker, method or direction mismatch. The fixed-size argument excludes truncated headers at this API boundary.