StreamConfig.tls constructor

StreamConfig.tls({
  1. TransportProtocol? method,
  2. TransportProtocol? network,
  3. TLSConfig? tlsSettings,
  4. TCPConfig? rawSettings,
  5. TCPConfig? tcpSettings,
  6. SplitHTTPConfig? xhttpSettings,
  7. KCPConfig? kcpSettings,
  8. WebSocketConfig? wsSettings,
  9. HttpUpgradeConfig? httpupgradeSettings,
  10. SplitHTTPConfig? splithttpSettings,
  11. GRPCConfig? grpcSettings,
  12. HysteriaConfig? hysteriaSettings,
  13. SocketConfig? sockopt,
})

Implementation

factory StreamConfig.tls({
  TransportProtocol? method,
  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(
      method: method,
      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,
    );