useTLS (property)
Enables or disables the TLS requirement.
Syntax
@property (nonatomic,readwrite,assign,getter=useTLS,setter=setUseTLS:) BOOL useTLS; - (BOOL)useTLS; - (void)setUseTLS:(BOOL)newUseTLS;
public var useTLS: Bool { get {...}
set {...} }
Default Value
FALSE
Remarks
Set this property to true to enable TLS on the listening port. TLS setting is mandatory: the server can either listen to plain HTTP or HTTPS connections.
Use TLSSettings to configure the TLS layer, and ServerCertificates to provide the server certificates.