Add StreamConsumer wrapper and methods to response

This commit is contained in:
Ridhim Rastogi 2019-11-30 00:54:11 -05:00 committed by Josh Matthews
parent 87c1019c5d
commit a5469f8710
6 changed files with 51 additions and 90 deletions

View file

@ -260,6 +260,7 @@ impl FetchResponseListener for FetchContext {
}
fn process_response_chunk(&mut self, mut chunk: Vec<u8>) {
self.response_object.root().stream_chunk(chunk.as_slice());
self.body.append(&mut chunk);
}