The next RequestController to pass a Request to if this instance returns a Request from processRequest.
Request controllers are chained together to form a pipeline that a request travels through to be responded to. This method adds an instance of some RequestController to a chain. A RequestController added to a chain in this way must not have any properties that change depending on the request, as many Requests will travel through the same instance in an asynchronous way.
This method returns a RequestController that further RequestControllers can be chained to.
Source
RequestController pipe(RequestController n) { var typeMirror = reflect(n).type; if (_requestControllerTypeRequiresInstantion(typeMirror)) { throw new RequestControllerException( "RequestController subclass ${typeMirror.reflectedType} instances cannot be reused. Rewrite as .generate(() => new ${typeMirror.reflectedType}())"); } this.nextController = n; return this.nextController; }