Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access rustls::Session from hyper::Service #146

Open
ipetr0v opened this issue Mar 10, 2021 · 1 comment
Open

Access rustls::Session from hyper::Service #146

ipetr0v opened this issue Mar 10, 2021 · 1 comment

Comments

@ipetr0v
Copy link

ipetr0v commented Mar 10, 2021

Currently the parameters of hyper::Service::call only include a Request. And I'm curious if it's possible to access rustls::Session somewhere from the Service.

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

@tiziano88
Copy link

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>>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants