Moduleswift-nio
NIOTLS
import NIOTLS
import NIOTLS
enum ALPNResult
The result of an ALPN negotiation.
enum SNIResult
The result of the SNI parsing. If 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.
enum TLSUserEvent
Common user events sent by all TLS implementations.
class ApplicationProtocolNegotiationHandler
A helper ChannelInboundHandler
that makes it easy to swap channel pipelines based on the result of an ALPN negotiation.
class SNIHandler
A channel handler that can be used to arbitrarily edit a channel pipeline based on the hostname requested in the Server Name Indication portion of the TLS Client Hello.