/// Connect via HTTP/2. Failure to connect will not fall back to old
/// versions, unless HTTP/1.1 is negotiated via TLS ALPN before the session
/// begins.
///
/// If HTTP/2 support is not compiled in, then using this strategy will
/// always result in an error.
///
/// This strategy is often referred to as [HTTP/2 with Prior
/// Knowledge](https://http2.github.io/http2-spec/#known-http).
Connect via HTTP/2. Failure to connect will not fall back to old
versions, unless HTTP/1.1 is negotiated via TLS ALPN before the session
begins.

If HTTP/2 support is not compiled in, then using this strategy will
always result in an error.

This strategy is often referred to as [HTTP/2 with Prior
Knowledge].
Connect via HTTP / 2 . Failure to connect will not fall back to old versions unless HTTP / 1 . 1 is negotiated via TLS ALPN before the session begins . If HTTP / 2 support is not compiled in then using this strategy will always result in an error . This strategy is often referred to as [ HTTP / 2 with Prior Knowledge ] .
pub const fn http2() -> Self {
        Self {
            flag: curl::easy::HttpVersion::V2PriorKnowledge,
            strict: true,
        }
    }
pub const fn http2 ( ) -> Self { Self { flag : curl :: easy :: HttpVersion :: V2PriorKnowledge , strict : true , } }
Connect via HTTP/2.
Connect via HTTP / 2 .