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

HTTPS support

Open benlevi1 opened this issue 1 year ago • 2 comments

Hey folks,

First of all, I would like to thank you for an amazing library. I am trying to work with a bitcoin instance via HTTPs (it is behind a gateway). As far as I see, the client does not support the protocol: it does relate to "https" by adding the port 443 but there is no actual TLS handling. Do you have any plans implementing it or is there any workaround?

benlevi1 avatar Oct 03 '23 09:10 benlevi1

We may add a minreq backend which has HTTPS support, and soft-deprecate our hand-rolled HTTP client (which seems to be subtly broken on certain platforms). The timeline for that is months, not weeks. Hopefully not years. I'm not sure who, if anybody, is actively working on it right now.

But we don't intend to implement HTTPS support ourselves.

apoelstra avatar Oct 03 '23 13:10 apoelstra

Adding HTTPS support by way of minreq shouldn't be too hard. I doubt it is that much work, for my part I don't like doing things unless I at least attempt to do them thoroughly and I have not found myself motivated enough by this work to do it thoroughly. I'm more than happy to review it if you feel like adding it @benlevi1, would be a useful addition to the crate IMO.

tcharding avatar Oct 03 '23 21:10 tcharding

minreq is implemented now and it provides HTTPS, this can be closed.

tcharding avatar May 31 '24 02:05 tcharding