add `consume_trailer` mode