StreamConfig.tls constructor
StreamConfig.tls({
- TransportProtocol? network,
- TLSConfig? tlsSettings,
- TCPConfig? rawSettings,
- TCPConfig? tcpSettings,
- SplitHTTPConfig? xhttpSettings,
- KCPConfig? kcpSettings,
- WebSocketConfig? wsSettings,
- HttpUpgradeConfig? httpupgradeSettings,
- SplitHTTPConfig? splithttpSettings,
- GRPCConfig? grpcSettings,
- HysteriaConfig? hysteriaSettings,
- SocketConfig? sockopt,
Implementation
factory StreamConfig.tls({
TransportProtocol? network,
TLSConfig? tlsSettings,
TCPConfig? rawSettings,
TCPConfig? tcpSettings,
SplitHTTPConfig? xhttpSettings,
KCPConfig? kcpSettings,
WebSocketConfig? wsSettings,
HttpUpgradeConfig? httpupgradeSettings,
SplitHTTPConfig? splithttpSettings,
GRPCConfig? grpcSettings,
HysteriaConfig? hysteriaSettings,
SocketConfig? sockopt,
}) => StreamConfig(
network: network,
security: SecurityProtocol.tls,
rawSettings: rawSettings,
tcpSettings: tcpSettings,
xhttpSettings: xhttpSettings,
kcpSettings: kcpSettings,
wsSettings: wsSettings,
httpupgradeSettings: httpupgradeSettings,
splithttpSettings: splithttpSettings,
grpcSettings: grpcSettings,
hysteriaSettings: hysteriaSettings,
tlsSettings: tlsSettings,
sockopt: sockopt,
);