close abstract method
Ends the response and returns the parts still held back.
Call it after the last chunk: text that could still have started a tag is held until then, and an unwrapped response is checked as a whole only then. Closing a stream that has ended returns nothing. A thrown error carries the parts made ready before the failure, as for feed.
Throws A2uiParseError if a block is still open, and
A2uiValidationError if the messages the response left behind are
rejected, for a stream that ends at a rejected block. A stream that
reads past rejected blocks returns an ErrorPart for them instead.
Implementation
List<P> close();