startSecure abstract method

Future<HttpChannel> startSecure(
  1. SecurityContext context, {
  2. dynamic address,
  3. int port = 8443,
  4. bool v6Only = false,
  5. bool requestClientCertificate = false,
  6. int backlog = 0,
  7. bool shared = false,
  8. bool zoned = true,
})

Starts the server listening for HTTPS request. *

  • Notice that you can invoke start, startSecure and startOn multiple
  • times to handle multiple channels:
  • new StreamServer()
    
  •   ..start(port: 80)
    
  •   ..startSecure(context, address: "11.22.33.44", port: 443);
    
  • To know which channel a request is received, you can access
  • HttpConnect.channel.
  • Default: InternetAddress.ANY_IP_V4 (i.e., "0.0.0.0").
  • It will cause Stream server to listen all adapters
  • IP addresses using IPv4.
    • port - the port. Default: 8443.
  • If port has the value 0 an ephemeral port will be chosen by the system.
  • The actual port used can be retrieved using HttpChannel.port.
    • zoned - whether to start the server within a zone (i.e., runZoned())
  • Default: true.

Implementation

Future<HttpChannel> startSecure(SecurityContext context,
    {address, int port = 8443,
    bool v6Only = false, bool requestClientCertificate = false,
    int backlog = 0, bool shared = false, bool zoned = true});