didOpen method

Future didOpen ()

Invoked when this server becomes ready receive requests.

ApplicationChannel.willStartReceivingRequests is invoked after this opening has completed.

Implementation

Future didOpen() async {
  server.serverHeader = "aqueduct/$identifier";

  logger.fine("ApplicationServer($identifier).didOpen start listening");
  server.map((baseReq) => Request(baseReq)).listen(entryPoint.receive);

  channel.willStartReceivingRequests();
  logger.info("Server aqueduct/$identifier started.");
}