Skip to main content

prepare_capsule_request

Function prepare_capsule_request 

pub fn prepare_capsule_request<B>(
    request: &mut Request<B>,
    protocol: Protocol,
) -> Result<(), CapsuleHandshakeError>
Available on crate features http and std only.
Expand description

Turn request into a Capsule Protocol handshake for protocol on its HTTP version, advertising Capsule-Protocol: ?1. The request must not carry content.