andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 129 forks source link

HTTP2 support? #77

Open datoga opened 3 years ago

datoga commented 3 years ago

Curl has http2 support since some time ago https://curl.se/docs/http2.html. In fact, it is enabled by default when https is used.

Is it planned to get this options supported in the project? If not, I would like to understand what it is needed to enable it.

Supporting these new options involves executing the pre-processor programs like: https://github.com/andelf/go-curl/pull/51 or is it needed an extra effort to enable it?

Of course, I suppose that supporting some of the new HTTP2 features (streaming, bidirectional, etc.) will require an extra effort, but maybe a "light" version of http2 support would take advantage of most features in HTTP2 (speed, compression, security, etc.).