Skip to content

ALPNStandardProtocolResolver

[Source]

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.

class val ALPNStandardProtocolResolver is
  ALPNProtocolResolver val

Implements


Constructors

create

[Source]

new val create(
  supported': Array[ALPNProtocolName] val,
  use_client_as_fallback': Bool val = true)
: ALPNStandardProtocolResolver val^

Parameters

Returns


Public fields

let supported: Array[ALPNProtocolName] val

[Source]


let use_client_as_fallback: Bool val

[Source]


Public Functions

resolve

[Source]

fun box resolve(
  advertised: Array[ALPNProtocolName] val)
: ALPNMatchResult

Parameters

Returns