-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added TLS/SSL support to server #199
Conversation
/// An acceptor for HTTP protocol over TCP. | ||
HttpA(TcpAcceptor), | ||
/// An acceptor for HTTP protocol over TCP protected by TLS/SSL. | ||
HttpsA(TcpAcceptor, Arc<SslContext>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SslContext doesn't derive Clone, and using a reference causes a lot of lifetimes to be required, so this is the best solution I can come up for this. Any thoughts?
Thanks, fantastic! I'm not ignoring this, I've been thinking about the design here. I might say that we merge this and refine the design if a better one is thought of... |
Thanks! I was thinking using some structs like |
I think this should work, but I'm still trying to figure out how to test it. Sorry, I'm new at this contributing-to-open-source-projects thing!