Function validate_capsule_response
pub fn validate_capsule_response<B>(
version: Version,
protocol: &Protocol,
response: &Response<B>,
violations: ViolationPolicy,
) -> Result<(), CapsuleHandshakeError>Available on crate features
http and std only.Expand description
Validate the response to a Capsule Protocol handshake for protocol sent on version.
The request is the caller’s own, prepared by prepare_capsule_request; only the response
is checked here. A refused handshake is CapsuleHandshakeError::Unsuccessful; its body can
still be read.