1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-27 15:29:03 +02:00

rename BodyLength to BodySize

This commit is contained in:
Nikolay Kim
2019-03-27 09:24:55 -07:00
parent b6b37d3ea3
commit faa3ea8e5b
18 changed files with 151 additions and 172 deletions

View File

@ -12,7 +12,7 @@ use futures::{Async, Future, Poll};
use regex::Regex;
use time;
use crate::dev::{BodyLength, MessageBody, ResponseBody};
use crate::dev::{BodySize, MessageBody, ResponseBody};
use crate::error::{Error, Result};
use crate::service::{ServiceRequest, ServiceResponse};
use crate::{HttpMessage, HttpResponse};
@ -238,7 +238,7 @@ impl<B> Drop for StreamLog<B> {
}
impl<B: MessageBody> MessageBody for StreamLog<B> {
fn length(&self) -> BodyLength {
fn length(&self) -> BodySize {
self.body.length()
}