StreamConfig.tls constructor

StreamConfig.tls({
  1. TransportProtocol? network,
  2. TLSConfig? tlsSettings,
  3. TCPConfig? rawSettings,
  4. TCPConfig? tcpSettings,
  5. SplitHTTPConfig? xhttpSettings,
  6. KCPConfig? kcpSettings,
  7. WebSocketConfig? wsSettings,
  8. HttpUpgradeConfig? httpupgradeSettings,
  9. SplitHTTPConfig? splithttpSettings,
  10. GRPCConfig? grpcSettings,
  11. HysteriaConfig? hysteriaSettings,
  12. 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,
);