run method

void run(
  1. dynamic socket,
  2. Function fn
)

Executes the middleware for an incoming client.

Implementation

void run(socket, Function fn) {
  var fns = this.fns.sublist(0);
  if (fns.isEmpty) {
    fn(null);
    return;
  }

  run0(0, fns, socket, fn);
}