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
//! # File System and I/O Module
//!
//! This module provides file system and I/O related functionality for the Deboa HTTP client.
//! It includes compression utilities and other I/O operations that support HTTP operations.
//!
//! ## Submodules
//!
//! - [`io`]: Compression utilities and I/O operations for HTTP requests
//!
//! ## Features
//!
//! - Compression algorithms for request bodies
//! - Async I/O operations
//! - Thread-safe implementations
//!
//! ## Usage
//!
//! The compression functionality can be used to reduce bandwidth usage:
//!
//! ```rust, ignore
//! use deboa::fs::io::Compressor;
//!
//! // Implement custom compression
//! struct MyCompressor;
//!
//! impl Compressor for MyCompressor {
//! fn name(&self) -> String {
//! "my-compression".to_string()
//! }
//!
//! async fn compress_body(&self, request: &DeboaRequest) -> Result<Bytes> {
//! // Compression logic here
//! }
//! }
//! ```