Skip to content

Commit 928b21e

Browse files
committed
feat(decompress-plz): added DecompressTrait
1 parent 86b6ffa commit 928b21e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

decompression-plz/src/dtraits.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use header_plz::{HeaderMap, body_headers::BodyHeader};
2+
3+
pub trait DecompressTrait {
4+
fn body_headers(&mut self) -> &Option<BodyHeader>;
5+
6+
fn header_map_as_mut(&mut self) -> &mut HeaderMap;
7+
8+
fn remove_header_on_position(&mut self, position: usize); // depends - header_map_as_mut
9+
10+
fn update_header_value_on_position(&mut self, position: usize, value: &str); // depends - header_map_as_mut
11+
}

decompression-plz/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(warnings)]
22
pub mod decompression;
33
pub mod dstruct;
4+
pub mod dtraits;
45
mod error;
56
mod state;

0 commit comments

Comments
 (0)