Instance Methodswift-nio-ssl 2.34.1NIOSSL
close(context:mode:promise:)
NIOSSLHandler.swift:266func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?) func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?) s6NIOSSL13NIOSSLHandlerC5close7context4mode7promisey7NIOCore21ChannelHandlerContextC_AH9CloseModeOAH16EventLoopPromiseVyytGSgtF What are these?1USEJimport NIOSSLTLS for SwiftNIO.
class NIOSSLHandlerThe base class for all NIOSSL handlers.
typealias Void = ()The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ().
var peerCertificate: NIOSSLCertificate? { get }Return a NIOSSLCertificate from the verified peer after handshake has completed.
var peerValidatedCertificateChain: ValidatedCertificateChain? { get }Return the validated certificate chain from the verified peer after handshake has completed.
var tlsVersion: TLSVersion? { get }Variable that can be queried during the connection lifecycle to grab the TLSVersion used on this connection.
func channelActive(context: ChannelHandlerContext) func channelInactive(context: ChannelHandlerContext) func channelRead(context: ChannelHandlerContext, data: NIOAny) func channelReadComplete(context: ChannelHandlerContext) func flush(context: ChannelHandlerContext) func handlerAdded(context: ChannelHandlerContext) func handlerRemoved(context: ChannelHandlerContext) func stopTLS(promise: EventLoopPromise<Void>?) Called to instruct this handler to perform an orderly TLS shutdown and then remove itself from the pipeline. This will leave the connection established, but remove the TLS wrapper from it.
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any) func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?) struct ConfigurationConfiguration for a specific instance of NIOSSLHandler, either client or server.
typealias InboundIn = ByteBuffertypealias InboundOut = ByteBuffertypealias OutboundIn = ByteBuffertypealias OutboundOut = ByteBuffer