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

Support for HTTPS #11

Closed
tomaka opened this issue Jul 16, 2014 · 3 comments
Closed

Support for HTTPS #11

tomaka opened this issue Jul 16, 2014 · 3 comments

Comments

@tomaka
Copy link
Member

tomaka commented Jul 16, 2014

This is a long-term issue. Don't expect it to be implemented within a few weeks or months.

@tomaka
Copy link
Member Author

tomaka commented Jul 21, 2014

HTTPS is just HTTP over SSL, there is no additional mechanism in the HTTP part itself (the only exception is Strict-Transport-Security which is handled by the library user).
So instead of directly supporting HTTPS I could instead use traits for sockets, and the user chooses whether to use regular sockets or SSL-enabled sockets.

This would require changes in the standard I/O library though, because the Acceptor and Stream traits alone don't allow timeouts.

@tomaka
Copy link
Member Author

tomaka commented Jul 22, 2014

This would require changes in the standard I/O library though, because the Acceptor and Stream traits alone don't allow timeouts.

See rust-lang/rust#15802

@tomaka
Copy link
Member Author

tomaka commented Nov 23, 2015

Everything should be ok now. We could implement this with an optional dependency towards openssl (disabled by default I guess, because that dependency is usually painful and not needed).

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

No branches or pull requests

1 participant