Backport StreamedResponse from 2.1