startSecure abstract method
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.
-
address
- It can either be a String or an InternetAddress.
- 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});