ALPNStandardProtocolResolver¶
Implements the standard protocol selection akin to the OpenSSL function SSL_select_next_proto
.
Implements¶
Constructors¶
create¶
new val create(
supported': Array[String val] val,
use_client_as_fallback': Bool val = true)
: ALPNStandardProtocolResolver val^
Parameters¶
Returns¶
Public fields¶
let supported: Array[String val] val¶
let use_client_as_fallback: Bool val¶
Public Functions¶
resolve¶
fun box resolve(
advertised: Array[String val] val)
: (String val | ALPNNoAck val | ALPNWarning val |
ALPNFatal val)
Parameters¶
Returns¶
- (String val | ALPNNoAck val | ALPNWarning val | ALPNFatal val)