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

Ssl context #479

Merged
merged 3 commits into from
Apr 27, 2015
Merged

Ssl context #479

merged 3 commits into from
Apr 27, 2015

Conversation

mikedilger
Copy link
Contributor

See #471

}

/// Start listening to an address of HTTPS using the given SslContext
pub fn https_using_context<To: ToSocketAddrs>(addr: To, ssl_context: SslContext) -> io::Result<HttpListener> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention is to use "with" for these sorts of constructors, so https_with_context may be appropriate.

mikedilger and others added 3 commits April 27, 2015 08:18
Allow a Server to operate without requiring the entire Server struct
to move into the with_listener function (instead only the handler
function needs to move). This, allows other members to not move, or
move separately, which will be needed for the next commit.  See hyperium#471
@mikedilger
Copy link
Contributor Author

I've amended the commits and force-pushed the amended branch. I think I've addressed your concerns.

@seanmonstar
Copy link
Member

Thanks!

seanmonstar added a commit that referenced this pull request Apr 27, 2015
@seanmonstar seanmonstar merged commit f7f0361 into hyperium:master Apr 27, 2015
@mikedilger mikedilger deleted the ssl_context branch April 27, 2015 23:21
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

Successfully merging this pull request may close these issues.

3 participants