fix(client): ensure idle connection is pooled before response body finishes

This commit is contained in:
Sean McArthur
2018-04-03 14:25:39 -07:00
parent 06405c2c49
commit 7c12a2cde3
4 changed files with 105 additions and 18 deletions

View File

@@ -45,6 +45,10 @@ impl<T, U> Sender<T, U> {
}
}
pub fn is_ready(&self) -> bool {
self.giver.is_wanting()
}
pub fn is_closed(&self) -> bool {
self.giver.is_canceled()
}