Starts this instance, allowing it to receive HTTP requests.
Do not invoke this method directly, Application instances are responsible for calling this method.
Source
Future start(RequestSink sink, {bool shareHttpServer: false}) async {
logger.fine("ApplicationServer($identifier).start entry");
this.sink = sink;
sink.server = this;
sink.setupRouter(sink.router);
sink.router?.finalize();
sink.nextController = sink.initialController;
logger.fine("ApplicationServer($identifier).start binding HTTP");
var securityContext = sink.securityContext;
if (securityContext != null) {
_requiresHTTPS = true;
server = await HttpServer.bindSecure(configuration.address,
configuration.port, securityContext,
requestClientCertificate: configuration.isUsingClientCertificate,
v6Only: configuration.isIpv6Only,
shared: shareHttpServer);
} else {
_requiresHTTPS = false;
server = await HttpServer.bind(
configuration.address, configuration.port,
v6Only: configuration.isIpv6Only, shared: shareHttpServer);
}
logger.fine("ApplicationServer($identifier).start bound HTTP");
return didOpen();
}