alexcrichton / curl-rust

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

Expose the CURLOPT_HTTP09_ALLOWED libcurl option #447

Closed jbangelo closed 2 years ago

jbangelo commented 2 years ago

This PR addresses my feature request in #436. It adds the ability to set the CURLOPT_HTTP09_ALLOWED option. Unfortunately there are still use cases for this option.

I took my best guess as to how to properly implement it. Please let me know if there's anything that needs to be changed, or even if exposing this option is acceptable.

sagebind commented 2 years ago

Thanks! The implementation looks correct to me, just some minor suggestions.

jbangelo commented 2 years ago

@sagebind I've updated the method names as you suggested. Thanks for the quick feedback!