1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Module for handling HTTP response body encoding.
//!
//! This module provides functionality for encoding HTTP response bodies using different compression
//! algorithms like gzip, deflate, zstd, and brotli. It works in conjunction with the encoder
//! module to provide a complete encoding solution.
//!
//! The main components are:
//! - `Writer`: An internal buffer implementation for collecting encoded data
//! - `encoder`: A sub-module containing the encoding logic and request handler wrapper
//!
//! The implementation is inspired by the actix-http crate's encoding functionality.
use ;
use io;
// inspired by from actix-http
pub