ITADN

accessing quinn ClientBuilder options from the web_transport::Client

#135Openjin-eld 创建于 2025-12-15
J
jin-eldcommented
Hi, I am developing an application which supports both, browser WASM32 and native and I ran into the following issue. I'd like to provide an option to disable certificate verification, I understand, that this would not work on WASM, but it would be nice to be able to still use the web_transport::Client which sits on top of WASM and native, instead of having to split the code by platform and go the `web-transport-quinn::Client` route. For instance, `web-transrpot::Client` already provides: > pub fn [with_unreliable](https://docs.rs/web-transport/0.9.7/web_transport/struct.ClientBuilder.html#method.with_unreliable)(self, val: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self > > For compatibility with WASM. Panics if val is false, but does nothing else. ..and having something similar for `pub fn with_no_certificate_verification(self)` would be very helpful. Would you consider looking at this or is there perhaps an existing way in the API which I am not seeing?
7 条评论