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

Get protocol after handshake #30

Open
MoMannn opened this issue Jul 21, 2020 · 1 comment
Open

Get protocol after handshake #30

MoMannn opened this issue Jul 21, 2020 · 1 comment

Comments

@MoMannn
Copy link

MoMannn commented Jul 21, 2020

I was able to get this up and running but I cannot find a way to get which alpn protocol was decided (lets say server supports both http2 and http1.1 on alpn). Underlying ServerSession of rustls supports this but it is private trough TlsStream or acceptor. What is the correct way to access it?

@xpepermint
Copy link

pub struct TlsStream<IO> {
    pub(crate) io: IO,
    pub(crate) session: ServerSession,
    pub(crate) state: TlsState,
}

Looks like session should be pub to access this information.

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