mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add StreamConsumer wrapper and methods to response
This commit is contained in:
parent
87c1019c5d
commit
a5469f8710
6 changed files with 51 additions and 90 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue