restson-rust icon indicating copy to clipboard operation
restson-rust copied to clipboard

Allow for using rustls instead of native-tls

Open xfbs opened this issue 3 years ago • 1 comments

Should restson maybe have parameters to allow for using rustls?

xfbs avatar Jan 04 '22 17:01 xfbs

Hyper supports rustls so it should not be a big effort to add the support here, and I think such option parameter would make sense.

For now, it should already be possible (I haven't tested this) to use rustls by constructing your own Hyper client and using the with_client() in the builder: https://github.com/spietika/restson-rust/blob/master/src/lib.rs#L210

Though this is not very convenient so having it as an option would make sense.

spietika avatar Jan 04 '22 19:01 spietika

This is now (finally) possible in version 1.4.0 by using rustls feature.

spietika avatar May 12 '23 19:05 spietika