diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0126238ef..d61c96963 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -87,7 +87,7 @@ jobs:
&& github.ref == 'refs/heads/master'
run: |
cargo install cargo-tarpaulin --vers "^0.13"
- cargo tarpaulin --out Xml
+ cargo tarpaulin --out Xml --verbose
- name: Upload to Codecov
if: >
matrix.target.os == 'ubuntu-latest'
diff --git a/actix-http/src/body.rs b/actix-http/src/body.rs
deleted file mode 100644
index 4fd578c87..000000000
--- a/actix-http/src/body.rs
+++ /dev/null
@@ -1,740 +0,0 @@
-//! Traits and structures to aid consuming and writing HTTP payloads.
-
-use std::{
- fmt, mem,
- pin::Pin,
- task::{Context, Poll},
-};
-
-use bytes::{Bytes, BytesMut};
-use futures_core::{ready, Stream};
-use pin_project::pin_project;
-
-use crate::error::Error;
-
-/// Body size hint.
-#[derive(Debug, PartialEq, Copy, Clone)]
-pub enum BodySize {
- /// Absence of body can be assumed from method or status code.
- ///
- /// Will skip writing Content-Length header.
- None,
-
- /// Zero size body.
- ///
- /// Will write `Content-Length: 0` header.
- Empty,
-
- /// Known size body.
- ///
- /// Will write `Content-Length: N` header. `Sized(0)` is treated the same as `Empty`.
- Sized(u64),
-
- /// Unknown size body.
- ///
- /// Will not write Content-Length header. Can be used with chunked Transfer-Encoding.
- Stream,
-}
-
-impl BodySize {
- /// Returns true if size hint indicates no or empty body.
- ///
- /// ```
- /// # use actix_http::body::BodySize;
- /// assert!(BodySize::None.is_eof());
- /// assert!(BodySize::Empty.is_eof());
- /// assert!(BodySize::Sized(0).is_eof());
- ///
- /// assert!(!BodySize::Sized(64).is_eof());
- /// assert!(!BodySize::Stream.is_eof());
- /// ```
- pub fn is_eof(&self) -> bool {
- matches!(self, BodySize::None | BodySize::Empty | BodySize::Sized(0))
- }
-}
-
-/// Type that implement this trait can be streamed to a peer.
-pub trait MessageBody {
- fn size(&self) -> BodySize;
-
- fn poll_next(
- self: Pin<&mut Self>,
- cx: &mut Context<'_>,
- ) -> Poll