mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
add h1::SendResponse future; renamed to MessageBody::size
This commit is contained in:
@ -241,8 +241,8 @@ impl<B> Drop for StreamLog<B> {
|
||||
}
|
||||
|
||||
impl<B: MessageBody> MessageBody for StreamLog<B> {
|
||||
fn length(&self) -> BodySize {
|
||||
self.body.length()
|
||||
fn size(&self) -> BodySize {
|
||||
self.body.size()
|
||||
}
|
||||
|
||||
fn poll_next(&mut self) -> Poll<Option<Bytes>, Error> {
|
||||
|
@ -360,7 +360,7 @@ impl<B: MessageBody> fmt::Debug for ServiceResponse<B> {
|
||||
for (key, val) in self.response.head().headers.iter() {
|
||||
let _ = writeln!(f, " {:?}: {:?}", key, val);
|
||||
}
|
||||
let _ = writeln!(f, " body: {:?}", self.response.body().length());
|
||||
let _ = writeln!(f, " body: {:?}", self.response.body().size());
|
||||
res
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user