1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

migrate client to std::future

This commit is contained in:
Nikolay Kim
2019-11-18 18:42:27 +06:00
parent 8cba1170e6
commit 9e95efcc16
9 changed files with 674 additions and 698 deletions

View File

@ -55,7 +55,7 @@ where
if item.is_none() {
let _ = this.body.take();
}
framed.force_send(Message::Chunk(item))?;
framed.write(Message::Chunk(item))?;
}
Poll::Pending => body_ready = false,
}
@ -78,7 +78,7 @@ where
// send response
if let Some(res) = this.res.take() {
framed.force_send(res)?;
framed.write(res)?;
continue;
}