ALPNProtocolResolver¶
Controls the protocol name to be chosen for incoming SSL connections using the ALPN extension.
An implementation is val: a context shares the resolver across actors and
runs it from any of them, so it cannot depend on mutable state.
Public Functions¶
resolve¶
Choose a protocol from the ones the client advertised. Returning a name that the client did not advertise fails the handshake.
Parameters¶
- advertised: Array[ALPNProtocolName] val