Sets the nextController that will receive a request after this one.
If this instance returns a Request from processRequest, that request is passed to next
's receive method.
See listen for a variant of this method that takes a closure instead of an object.
See generate for a variant of this method that creates a new instance for each request.
Source
RequestController pipe(RequestController next) { var typeMirror = reflect(next).type; if (_requestControllerTypeRequiresInstantion(typeMirror)) { throw new RequestControllerException( "'${typeMirror.reflectedType}' instances cannot be reused between requests. Rewrite as .generate(() => new ${typeMirror.reflectedType}())"); } _nextController = next; return _nextController; }