attachToHttpServer static method

Engine attachToHttpServer(
  1. StreamController<HttpRequest> httpServerStream, [
  2. Map? options
])

Implementation

static Engine attachToHttpServer(
    StreamController<HttpRequest> httpServerStream,
    [Map? options]) {
  var engine = Server(options);
  engine.attachToHttpServer(httpServerStream, options);
  return engine;
}