Skip to content

ALPNProtocolResolver

[Source]

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.

interface val ALPNProtocolResolver

Public Functions

resolve

[Source]

Choose a protocol from the ones the client advertised. Returning a name that the client did not advertise fails the handshake.

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

Parameters

Returns