Add support for StreamedResponse, fix after middlewares