ALPNStandardProtocolResolver¶
Selects the first supported protocol the client advertised, in the order
supported gives them. Falls back to the client's first choice when none of
them is supported, unless use_client_as_fallback is false, in which case it
returns ALPNWarning.
Implements¶
Constructors¶
create¶
new val create(
supported': Array[ALPNProtocolName] val,
use_client_as_fallback': Bool val = true)
: ALPNStandardProtocolResolver val^
Parameters¶
- supported': Array[ALPNProtocolName] val
- use_client_as_fallback': Bool val = true
Returns¶
Public fields¶
let supported: Array[ALPNProtocolName] val¶
let use_client_as_fallback: Bool val¶
Public Functions¶
resolve¶
Parameters¶
- advertised: Array[ALPNProtocolName] val