The following enumerations are available globally.
The result of an ALPN negotiation.
In a system expecting an ALPN negotiation to occur, a wide range of possible things can happen. In the best case scenario it is possible for the server and client to agree on a protocol to speak, in which case this will be
.negotiatedwith the relevant protocol provided as the associated value. However, if for any reason it was not possible to negotiate a protocol, whether because one peer didn’t support ALPN or because there was no protocol overlap, we should
fallbackto a default choice of some kind.
Exactly what to do when falling back is the responsibility of a specific implementation.See more
public enum ALPNResult : Equatable
The result of the SNI parsing. IfSee more
hostname, then the enum also contains the hostname received in the SNI extension. If
fallback, then either we could not parse the SNI extension or it was not there at all.
public enum SniResult : Equatable