Open ipetr0v opened 3 years ago
BTW it looks that Request
is just a generic parameter in Service
, so maybe there is a way of passing a wrapper around the HTTP request that carries the TLS context along, and implement Service<Wrapper<Request>>
?
Currently the parameters of
hyper::Service::call
only include aRequest
. And I'm curious if it's possible to accessrustls::Session
somewhere from theService
.Accessing TLS session could be useful for multiple reasons, for example for implementing applications that rely on the TLS Keying Material (provided by
rustls::Session::export_keying_material
).cc @tiziano88