register method

void register (ServerPipeline ws)

Register a proxy with a pipeline.

Implementation

void register(ServerPipeline ws) {
  assert(method == 'GET' || method == 'HEAD',
      'only GET and HEAD is implemented right now');
  // ignore: unnecessary_lambdas
  ws.register(method, '~/$_pathPrefix/*', (req) => handleGetOrHead(req));
}