alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1k stars 234 forks source link

how to enable http2 with cutl-rust #473

Open zhangbtciab opened 1 year ago

ehuss commented 1 year ago

The http2 feature needs to be enabled in Cargo.toml (like curl = { version = "0.4.44", features = ["http2"] } and set the version in the code with http_version.